What does Ctrl+/ do?
In VS Code, Ctrl+/ means: Toggle line comment on the current line or selection.
Where this shortcut applies
| App | Platform | What it does |
|---|---|---|
| VS Code | App context | Toggle line comment on the current line or selection |
| Figma | App context | Open the plugins and widgets search panel |
| Slack | App context | Open the full list of Slack keyboard shortcuts |
| Microsoft Teams | App context | Show the list of slash commands in the search bar |
| DaVinci Resolve | App context | Toggle looped playback of the timeline |
| IntelliJ IDEA | App context | Toggle line comment on the selected line(s) |
| Cursor | App context | Toggle line comment |
| Obsidian | App context | Comment out the selected markdown line |
| Google Meet | App context | View all keyboard shortcuts in a help panel |
| Notepad++ | App context | Reset the editor font size to default |
| Sublime Text | App context | Comment or uncomment the current line(s) |
| Asana | App context | Display the full Asana keyboard shortcut reference |
| Linear | App context | Display the full Linear keyboard shortcut reference |
Full shortcut pages
Frequently asked questions
- What does Ctrl+/ do?
- In VS Code, Ctrl+/ means: Toggle line comment on the current line or selection.
- Does this shortcut work the same way in every app?
- No. The listed contexts include VS Code, Figma, Slack, Microsoft Teams, DaVinci Resolve, IntelliJ IDEA, Cursor, Obsidian, Google Meet, Notepad++, Sublime Text, Asana, Linear. Check the table for each application and platform: the active window, keyboard layout and application settings determine which command receives the key press. An application being available on an operating system is not evidence that this exact binding works there.
- What should I use on a Mac?
- Use a macOS binding shown in the table, if one is recorded for your task and application. This page does not assume that replacing Ctrl with Cmd produces a working Mac shortcut. When an equivalent has not been documented, open the linked application reference and check its documented context before relying on it.