Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPStorm: Keyboard shortcut to initialize multiple cursors on selected lines?

I used Shift + Command (Ctrl) + L in Sublime Text 2.

What is the equivalent shortcut to initialize multiple cursors on selected lines in PHPStorm 8?

like image 626
Sanket Sahu Avatar asked Nov 14 '14 11:11

Sanket Sahu


People also ask

How do I select a multiline cursor?

You can just Alt + click for additional cursors. And as already mentioned, Ctrl + Alt + ↑ or ↓ . And you can use Alt+Shift+click to select two lines and every line in between.

How do I get multiple cursors in Intellij?

Alt+Shift+Click at the target location to add another caret. Alt+Shift+Click at one of the multiple carets to remove it.


1 Answers

You can add it yourself.

  1. Go to Preferences -> Keymap
  2. Search for Clone Caret Below and Clone Carrot Above
  3. Bind a shortcut (I used Ctrl + Command + for the first one)

Hit it until all the lines you want to edit have cursors :)

like image 188
Tum Avatar answered Oct 31 '22 08:10

Tum