Reputation: 34884
Is there any way to put a cursor to a beginning of each line in Sublime Text, given that the beginning of each line is different so it's impossible to do a search by a pattern and then select all the occurrences? I want to do that without any plugin.
Upvotes: 0
Views: 526
Reputation: 11543
An alternative to MattDMo's answer could be to select all
(ctrlA), then split selection into lines
(ctrlshiftL), then move to the beginning of the line
(home) to get the cursors in the proper position and cancel out the selection.
This would avoid the regex search.
Upvotes: 2
Reputation: 102852
Do a regex search for \n
, then hit Find All
(AltEnter) to select all the newline characters (the very end of each line). Next, hit ← to remove the selections, which places the cursors at the end of each line. Finally, hit Home twice to move the cursors to the beginning of each line.
Upvotes: 1