Comment line

IntelliJ IDEA keyboard shortcut

Ctrl + /

Press Ctrl + / to comment line.

Practice this shortcut All IntelliJ IDEA shortcuts