Toggle block comment: the shortcut in 6 apps
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.
| App | Mac | Windows | Linux |
|---|---|---|---|
| EclipseAdd a block comment | ShiftCmd/ | CtrlShift/ | CtrlShift/ |
| IntelliJComment with block comment | OptionCmd/ | CtrlShift/ | CtrlShift/ |
| NeovimComment or uncomment the selection · Visual mode | G,C | G,C | G,C |
| Sublime TextBlock comment | OptionCmd/ | CtrlShift/ | CtrlShift/ |
| VS CodeToggle block comment | OptionShiftA | AltShiftA | CtrlShiftA |
| WebStormComment with block comment | OptionCmd/ | CtrlShift/ | CtrlShift/ |
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
- Neovim (Visual mode).
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.