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

Sublimetext2Sublimetext3Sublimetext

Sublimetext2 Problem Overview


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.

Sublimetext2 Solutions


Solution 1 - Sublimetext2

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.

Solution 2 - Sublimetext2

On a mac, you can highlight the lines you wish to edit and use CMDShiftL, or ctrlShiftL on Windows.

Solution 3 - Sublimetext2

On Mac

  1. cmd+A (Select all)
  2. cmd+shift+L (Split selection into lines)
  3. shift+2 (Surround selection with quotes)
  4. esc (Escape)

Multiple cursors

Solution 4 - Sublimetext2

On Windows

CTRL+A (Select all Data)

CTRL+Shift+L (Cursor will appear on each line)

Shift+ (right or left key) (move the cursor left or right)

Press ESC to remove the focus.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJackoView Question on Stackoverflow
Solution 1 - Sublimetext2Eric HotingerView Answer on Stackoverflow
Solution 2 - Sublimetext2TayTayView Answer on Stackoverflow
Solution 3 - Sublimetext2user3589620View Answer on Stackoverflow
Solution 4 - Sublimetext2Hassan RazaView Answer on Stackoverflow