Duplicate line

IntelliJ IDEA keyboard shortcut

Ctrl + D

Press Ctrl + D to duplicate line.

Practice this shortcut All IntelliJ IDEA shortcuts