Select all and multiple cursors using SublimeText2

Ravi Ram picture Ravi Ram · Sep 20, 2012 · Viewed 19.4k times · Source

I have a text file with 100's of news articles. I need to Select All > Take cursor to the beginning of each line and have the 'multiple cursors' open so I can add some data.

Since the new articles do not have the same begging character, I can not use CTRL+F3.

Is there a way to [CTRL] + [A] (Select All) then > Go to the begging of each line with 'multiple cursors' open ?

Answer

Riccardo Marotti picture Riccardo Marotti · Sep 20, 2012

You should select all with ctrl+A.

Then split the selection into one selection per line with ctrl+shift+L.

Then press the left arrow key.

Now you should be able to type data at the beginning of each line.