Sublime Forum

Multiple carets with keyboard

#1

I know how to use the mouse to create multiple carets. Is there any way to create multiple carets using only the keyboard?

0 Likes

#2

check the available shortcuts under Selection -> Add Previous/Next Line

0 Likes

#3

Plus pressing control+D multiple times will expand the cursor to the next match.

0 Likes

#4

plus pressing ctrl+cmd+G (OSX shortcut. for your os check Find -> Quick Find All) selects all occurances of the word under cursor.

0 Likes

#5

Ctrl-Alt Up/Down on Windows.

0 Likes

#6

Thanks, all. I added this to my key bindings:

// Multiple carets
{ "keys": "super+alt+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": "super+alt+down"], "command": "select_lines", "args": {"forward": true} }
0 Likes