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.
147
Four steps:
- Select all the text: CTRL A
- Activate multi-cursors: CTRL (or CMD on Mac) SHIFT L
- Press the Home key to move all cursors to the front of the line
- Press the " quote key to insert the quote.
Using the Home End and CTRL + left | right arrow keys is handy when managing multiple cursors.
-
3
-
I've been using sublime for 5+ years, and wish I knew this years ago. @Jacko Give this man the green checkmark. – Dave Liu May 16 at 20:27
-
10
On a mac, you can highlight the lines you wish to edit and use CMDShiftL, or ctrlShiftL on Windows.
-
1If you happen to use Loom, quit that program because it hijacks this hotkey combo on mac. – Abram Aug 29 at 14:21
1
On Mac
- cmd+A (Select all)
- cmd+shift+L (Split selection into lines)
- shift+2 (Surround selection with quotes)
- esc (Escape)