Select current line in intellij
Solution 1:
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.
Solution 2:
- move caret to line
- on Windows, press ctrl+shift+a .
This popup appears, where you find
Select Line at Caret
- for quick access, you can specify a shortcut in
Settings
Solution 3:
I would like to also add the following from JetBrains website. Because, that what i was looking for here, but no one mentioned it.
1- To select text from the current caret position to the beginning/end of the current word:
Ctrl+Shift+Left, Ctrl+Shift+Right.
2- To select text from the caret position to the beginning/end of the current line:
Double-click Ctrl and press Home/End
3- To select text from the current caret position to the top/bottom of the screen:
Ctrl+Shift+Page Up, Ctrl+Shift+Page Down.
Solution 4:
If none of the above are working, I suggest using end and home keys in combination with shift allowing you to select lines quickly.
Solution 5:
Go to the end of the line and hit Ctrl+W. If you'll hit Ctrl+W at the beginning of the line it will select only one word.