Sublime Forum

Select line cmd-l modification

#1

When I press cmd-l, sublime selects the line of code. So far so good. But it includes the carriage return at the end of the line, which is annoying me a lot. Can I modify (or simply override, or associate another key-binding) the behaviour so that the selection excludes the final carriage-return?

Thanks,

Tim

0 Likes

#2

You can do a ‘Split into Lines’ after selecting the line.

I do this with the following macro:


	{
		"args":
		{
			"to": "line"
		},
		"command": "expand_selection"
	},
	{
		"args": null,
		"command": "split_selection_into_lines"
	}
]

Keybinding:

{ "keys": "super+l"], "command": "run_macro_file", "args": {"file": "Packages/User/Select Line.sublime-macro"} }

Regards, Thorsten.

0 Likes

#3

great!

Thank you

Tim

0 Likes