Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 720
Ravi Ram Avatar asked Sep 20 '12 20:09

Ravi Ram


People also ask

How do I get multiple cursors?

A common way to add more cursors is with Shift+Alt+Down or Shift+Alt+Up that insert cursors below or above. Note: Your graphics card driver (for example NVIDIA) might overwrite these default shortcuts. Ctrl+D selects the word at the cursor, or the next occurrence of the current selection.

What is Ctrl D in sublime?

Ctrl + D in SublimeText is "Quick Add Next." This appears to be equivalent to Ctrl + B in Brackets, which is "Add next match to Selection" on the Find menu.

How do you select all words in sublime?

1 Answer. Show activity on this post. If you have your mouse caret (blinking pipe | ) on a word and you press ctrl-d (Windows) or cmd-d (Mac) you can select the current word & if you press ctrl-d afterwards that it will select other repeat occurences of your selection.

How do I select multiple lines with a cursor?

Place your cursor somewhere in or next to the word you wish to select. Press Ctrl+D (Windows or Linux) or Command+D (Mac OS X) to highlight the entire word. Press Ctrl+D (Windows or Linux) or Command+D (Mac OS X) to select the next instance of the word.


1 Answers

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.

like image 160
Riccardo Marotti Avatar answered Sep 28 '22 11:09

Riccardo Marotti