Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I select the line at the caret in PhpStorm?

Tags:

phpstorm

I found "Select Word at Caret" in the Edit menu. Is there a way to do similar, but select the entire line?

like image 460
Daryl Spitzer Avatar asked Feb 24 '14 21:02

Daryl Spitzer


2 Answers

If you have nothing selected, and press ⌘ + C, PhpStorm will automatically copy the line at the caret. So basically, you don't need the 'Select Line at Caret' action.

like image 61
Innovaat Avatar answered Sep 29 '22 19:09

Innovaat


I found "Select Line at Caret" in Preferences under "Keymap". (And associated it with ⌘-L.)

enter image description here

like image 44
Daryl Spitzer Avatar answered Sep 29 '22 18:09

Daryl Spitzer