Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to select/copy current line without using mouse in IntelliJ IDEA

To duplicate lines I use

Ctrl + D

Is there a similar way to select/copy current line using keyboard in IntelliJ IDEA?

like image 507
yalkris Avatar asked Jul 23 '15 15:07

yalkris


2 Answers

If you have nothing selected, I think you can just hit CTRL-C to copy a line (or CTRL-X to cut it)...

http://grahamhackingscala.blogspot.co.uk/2010/08/fast-quick-line-cut-copy-intellij-idea.html

Hope this helps.

like image 147
BretC Avatar answered Sep 27 '22 01:09

BretC


CTRL + X CTRL + V

CTRL + D - duplicate line CTRL + Y - delete line

like image 36
adrian filipescu Avatar answered Sep 23 '22 01:09

adrian filipescu