Select all and multiple cursors using SublimeText2

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 ?


Solution 1:

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.

Solution 2:

Let me add some answer, ( work in sublime 2 / sublime 3 )

i try with @Riccardo Marotti step , but when the article have tab it will lead to the very far first line

So I make some fix , To make cursor in every front line or every end of line :

  1. ctrl+A // select all

  2. ctrl+Shift+L // Add cursor to all line

  3. Shift+Home // put cursor to first word in the line

to get the end of line no need to do the first step again if you are in the first line, just do this one :

Shift+End // put cursor to end of line, then click "right arrow" to remove the drag

or you can try this one (really an experimental works)

Just use you center of mouse, click it (the center roll of your mouse), then drag, this will lead to add more cursor , then just press left/right

or try to seek more here :

sublime-text-multiple-cursor-shortcut

override-shortcut-for-multiple-cursors

hope this help

Solution 3:

I think ctrl+alt+down (or up) when your cursor is at the beginning of a line might be what you're looking for. It will put the cursor on multiple lines, and what you type will be duplicated on each.