Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Select current line in intellij

Is there any way to select the whole line at caret in IntelliJ 15? I know you can select the current word (ctl + w), go to beginning/end of line but I can't find a current line selection feature.

like image 650
Dodi Avatar asked Apr 12 '16 11:04

Dodi


2 Answers

Simply hit ctrl+c.

Note that for this to select the whole line, you need to ensure that nothing is already selected; otherwise it'll work as an usual "copy" command.

like image 92
garci560 Avatar answered Sep 19 '22 11:09

garci560


  1. move caret to line
  2. on Windows, press ctrl+shift+a . This popup appears, where you find Select Line at Caret
    enter image description here
  3. for quick access, you can specify a shortcut in Settings enter image description here
like image 21
JimHawkins Avatar answered Sep 20 '22 11:09

JimHawkins