Select current line in intellij

Dodi picture Dodi · Apr 12, 2016 · Viewed 43.4k times · Source

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.

Answer

garci560 picture garci560 · Apr 13, 2016

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.