Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I expand multi-line selection to full lines in PHPStorm?

In Sublime Text I can arbitrarily select a set of lines and then use ⌘+L to expand the selection to the full lines. Is there a similar command in PHPStorm / WebStorm? (I'd like to map that command to a keyboard shortcut.)

I know PHPStorm has the option "Select Line at Caret", but that selects only one line.

like image 201
Ludder Avatar asked Oct 02 '14 16:10

Ludder


1 Answers

Hold down Alt + Shift and left click on the lines you want to select. This will put multiple cursors on the editor. Now you can use the Select Line at Caret option you mentioned to select all those lines.

You can find more about multiple selections here.

like image 92
Darek Kay Avatar answered Oct 24 '22 20:10

Darek Kay