Skip to the main content

IntelliJ IDEA

Toggle a line comment

Not yet source checked. This entry comes from the vendor published reference and has not had its documentation review yet. Check the source link before you rely on it.

Ctrl/

Windows Desktop app IntelliJ IDEA default keymap

Practice this

In IntelliJ IDEA, Ctrl + Slash will toggle a line comment. On a Mac, press Cmd + Slash instead.

Where it works: Editor

Every documented variant

Variants of this shortcut
System Environment Keys
Mac Desktop app Cmd/
Windows Desktop app Ctrl/

Where this comes from

IntelliJ IDEA keyboard shortcuts

This entry comes from the vendor published reference and has not had its documentation review yet. Check the source link before you rely on it.

Report a correction