122

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.

MattDMo
  • 100,794
  • 21
  • 241
  • 231
Jacko
  • 1,323
  • 2
  • 9
  • 6

5 Answers5

262

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.

Eric Hotinger
  • 8,957
  • 5
  • 36
  • 43
17

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

TayTay
  • 6,882
  • 4
  • 44
  • 65
11

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

Community
  • 1
  • 1
9

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.

HMD
  • 2,202
  • 6
  • 24
  • 37
Hassan Raza
  • 501
  • 7
  • 8
0

In case if you want to put cursor at every string as currently selected, use Find All shortcut:

Windows/Linux: Alt+F3

Mac: ⌃+⌘+G

All Multiple Selection shortcuts

German Khokhlov
  • 1,724
  • 16
  • 15