Skip to the main content

Comment or uncomment a line keyboard shortcut in 15 apps

Comment or uncomment a line has a documented keyboard shortcut in 15 apps here, among them Android Studio, Chrome DevTools, DBeaver, Eclipse IDE. The most common keys are Ctrl + / on Windows and Cmd + / on a Mac.

Keys on this page were last checked against their sources on September 14, 2026.

Comment or uncomment a line keyboard shortcuts in 15 apps
App Windows Mac What it does
Android Studio Windows Ctrl + / Mac Cmd + / Comment lines with line comments
Chrome DevTools Windows Ctrl + / Mac Cmd + / Toggle a line comment
DBeaver Windows Ctrl + / Mac Ctrl + / Add or remove a single line comment
Eclipse IDE Windows Ctrl + / Mac Not documented Toggle a line comment
Godot Engine Windows Ctrl + K Mac Cmd + K Toggle a comment
IntelliJ IDEA Windows Ctrl + / Mac Cmd + / Toggle a line comment
Notepad++ Windows Ctrl + Q Mac Not documented Toggle a single line comment
Power BI Desktop Windows Ctrl + / Mac Not documented Comment or uncomment a line
RStudio Windows Ctrl + Shift + C Mac Cmd + Shift + C Comment or uncomment lines
SQL Server Management Studio Windows Ctrl + K then Ctrl + C Mac Not documented Comment out the selection
Sublime Text Windows Ctrl + / Mac Cmd + / Toggle a line comment
Visual Studio Windows Ctrl + / Mac Not documented Toggle line comments
Visual Studio Code Windows Ctrl + / Mac Cmd + / Toggle a line's comment state
Visual Studio Code Windows Ctrl + K then Ctrl + C Mac Not documented Add comment
Visual Studio Code Windows Ctrl + K then Ctrl + U Mac Not documented Remove comment

What most apps settled on for Comment or uncomment a line

On Windows, Ctrl + / is the combination in 8 of the 13 apps here that document one. On a Mac, it is Cmd + / in 5 of 8. 5 apps go their own way on Windows, and the table above is where to find them.

Where the table is deliberately empty

7 apps here publish no Mac key for Comment or uncomment a line, so those cells are left blank. A blank there is a gap in that maker documentation for Comment or uncomment a line, not an oversight here, and it is never filled by converting the other system.

If the keys for Comment or uncomment a line do nothing

The 15 apps listed here each decide this for themselves, so the first thing to check is that you are reading the row for the app you are actually in, and the column for your system. After that, check the app version, since comment or uncomment a line is the kind of command makers move between releases. Report a correction

Looking for everything one app can do? Browse apps