Tools / Keyboard Shortcuts / VS Code
VS Code Keyboard Shortcuts
20 keyboard shortcuts for Windows and Mac, grouped by task. VS Code 1.100 and later, default keymap.
VS Code
VS Code 1.100 and later, default keymapGeneral
| Action | Windows | Mac | Save or copy |
|---|---|---|---|
| Command palette | Ctrl+Shift+P | Cmd+Shift+P | |
| Go to file | Ctrl+P | Cmd+P | |
| Settings | Ctrl+, | Cmd+, | |
| Toggle terminal | Ctrl+` | Ctrl+` | |
| Toggle sidebar | Ctrl+B | Cmd+B | |
| Search in all files | Ctrl+Shift+F | Cmd+Shift+F | |
| Split editor | Ctrl+\ | Cmd+\ | |
| Zen mode | Ctrl+K then Z | Cmd+K then Z |
Editing
| Action | Windows | Mac | Save or copy |
|---|---|---|---|
| Move line up or down | Alt+Up / Alt+Down | Option+Up / Option+Down | |
| Copy line up or down | Shift+Alt+Up / Shift+Alt+Down | Shift+Option+Up / Shift+Option+Down | |
| Delete line | Ctrl+Shift+K | Cmd+Shift+K | |
| Add next match to selection | Ctrl+D | Cmd+D | |
| Select all matches | Ctrl+Shift+L | Cmd+Shift+L | |
| Add cursor above or below | Ctrl+Alt+Up / Ctrl+Alt+Down | Cmd+Option+Up / Cmd+Option+Down | |
| Toggle line comment | Ctrl+/ | Cmd+/ | |
| Format document | Shift+Alt+F | Shift+Option+F | |
| Rename symbol | F2 | F2 | |
| Go to definition | F12 | F12 | |
| Quick fix | Ctrl+. | Cmd+. | |
| Go to line | Ctrl+G | Ctrl+G |
More developer
Checked 2 Dec 2026. Product names belong to their owners; this is an independent guide.
How to use it
- Search by what you want to do, like "new tab" or "bold".
- Switch between Windows and Mac keys, or show both.
- Save the ones you use and print a cheat sheet for one app.
Questions
Are these shortcuts up to date?
We checked them on 2 Dec 2026 against current versions of each app. Apps change shortcuts from time to time, and many apps show their own list (often with Ctrl+/ or ?).
What do Cmd and Option mean?
On a Mac keyboard, Cmd is the Command key and Option is the Alt key. Ctrl is the Control key on both Windows and Mac.
Can I print a cheat sheet?
Yes. Pick one app and press Print cheat sheet. The page prints only the shortcuts, sized for paper.