Skip to content

↑↓ moveEnter openEsc close

Toggle block comment: the shortcut in 6 apps

6 apps · Mac, Windows and Linux

On Mac it is usually Cmd+Option+/ (2 of 6 apps); on Windows it is usually Ctrl+Shift+/ (4 of 6 apps); on Linux it is usually Ctrl+Shift+/ (4 of 6 apps). The table shows where each app agrees and where it differs.

AppMacWindowsLinux
EclipseAdd a block commentShiftCmd/CtrlShift/CtrlShift/
IntelliJComment with block commentOptionCmd/CtrlShift/CtrlShift/
NeovimComment or uncomment the selection · Visual modeG,CG,CG,C
Sublime TextBlock commentOptionCmd/CtrlShift/CtrlShift/
VS CodeToggle block commentOptionShiftAAltShiftACtrlShiftA
WebStormComment with block commentOptionCmd/CtrlShift/CtrlShift/

Small screen: your system's keys only. Open an app's row for every system.

A dash means the app has no default binding, or does not run, on that system. Open a row for notes and the full key details.

How the apps compare

  • Mac: Cmd+Option+/ in IntelliJ and Sublime Text; Shift+Cmd+/ in Eclipse; G C in Neovim; Shift+Option+A in VS Code; Option+Cmd+/ in WebStorm.
  • Windows: Ctrl+Shift+/ in Eclipse, IntelliJ, Sublime Text and WebStorm; G C in Neovim; Shift+Alt+A in VS Code.
  • Linux: Ctrl+Shift+/ in Eclipse, IntelliJ, Sublime Text and WebStorm; G C in Neovim; Ctrl+Shift+A in VS Code.

Where and when it works

Learn it by pressing it: Eclipse shortcuts practice, IntelliJ shortcuts practice, Neovim shortcuts practice, Sublime Text shortcuts practice, VS Code shortcuts practice or WebStorm shortcuts practice.