Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I put cursor on every line in Sublime Text?

I want to be able to edit every line of my data simultaneously, for instance put quotations in front of every line. I am wondering what the key combination is that will enable me to do this.

like image 664
Jacko Avatar asked Feb 17 '16 16:02

Jacko


People also ask

How do I put a cursor on every line?

Insert cursor at the beginning of every selected line: Mac: Cmd + A to select all lines. Windows: Ctrl + A to select all lines. Alt/Option + Shift + I to insert cursor at the end of every line.

How do you edit multiple lines in Sublime Text?

To select multiple regions using the keyboard, select a block of text, then press Ctrl+Shift+L to split it into one selection per line. When you're done with using multiple selections, just press Ctrl+K to trim all but the first.

How do I get my cursor back in Sublime Text?

You can use the Shift + 0 combination too. The zero must be from numeric keypad. Option + Command + o worked for me.


1 Answers

Four steps:

  1. Select all the text: CTRL A
  2. Activate multi-cursors: CTRL (or CMD on Mac) SHIFT L
  3. Press the Home key to move all cursors to the front of the line
  4. Press the " quote key to insert the quote.

Using the Home End and CTRL + left | right arrow keys is handy when managing multiple cursors.

like image 91
Eric Hotinger Avatar answered Sep 21 '22 11:09

Eric Hotinger