Get it on your desk →The most used VS Code shortcuts on Mac: Command Palette (⇧⌘P), Quick Open, go to file (⌘P), Save (⌘S), Toggle line comment (⌘/), Add next match to selection (⌘D). This page lists all 50, from the official documentation.
50 VS Code keyboard shortcuts for Mac, grouped into Files & general, Basic editing, Multi-cursor & search, Code & navigation, Panels, terminal & debug. Every key is copied from code.visualstudio.com (retrieved November 19, 2026) and shown on a real keyboard layout.
On Mac, 41 of these 50 shortcuts are the Windows ones with ⌘ in place of Ctrl; 9 are different, for example Fold region (⌥⌘[; Windows: Ctrl+Shift+[), Unfold region (⌥⌘]; Windows: Ctrl+Shift+]), Expand selection (⌃⇧⌘→; Windows: Alt+Shift+→).

VS Code keyboard map
Pick your keyboard and a modifier. Keys with a shortcut light up; point at or tap a key to see everything on it. Try it: hold ⌘ Cmd on your keyboard
More shortcuts on this key with other modifiers.
With ⌘15 keys
All VS Code keyboard shortcuts for Mac
No shortcut matches that search.
Files & general8
| Command | Shortcut |
|---|---|
| Command Palette | ⇧⌘P |
| Quick Open, go to file | ⌘P |
| User Settings | ⌘, |
| New file | ⌘N |
| Save | ⌘S |
| Close editor | ⌘W |
| Reopen closed editor | ⇧⌘T |
| Split editor | ⌘\ |
Basic editing12
| Command | Shortcut |
|---|---|
| Move line up | ⌥↑ |
| Copy line down | ⌥⇧↓ |
| Delete line | ⇧⌘K |
| Insert line below | ⌘↩ |
| Indent line | ⌘] |
| Outdent line | ⌘[ |
| Toggle line comment | ⌘/ |
| Toggle block comment | ⌥⇧A |
| Toggle word wrap | ⌥Z |
| Fold region | ⌥⌘[ |
| Unfold region | ⌥⌘] |
| Jump to matching bracket | ⇧⌘\ |
Multi-cursor & search10
| Command | Shortcut |
|---|---|
| Insert cursor above | ⌥⌘↑ |
| Insert cursor below | ⌥⌘↓ |
| Select current line | ⌘L |
| Select all occurrences | ⇧⌘L |
| Add next match to selection | ⌘D |
| Expand selection | ⌃⇧⌘→ |
| Find | ⌘F |
| Replace | ⌥⌘F |
| Search in files | ⇧⌘F |
| Replace in files | ⇧⌘H |
Code & navigation11
| Command | Shortcut |
|---|---|
| Trigger suggestion | ⌃Space |
| Format document | ⌥⇧F |
| Go to Definition | F12 |
| Peek Definition | ⌥F12 |
| Show References | ⇧F12 |
| Rename symbol | F2 |
| Quick Fix | ⌘. |
| Go to line | ⌃G |
| Go to symbol | ⇧⌘O |
| Problems panel | ⇧⌘M |
| Next error or warning | F8 |
Panels, terminal & debug9
| Command | Shortcut |
|---|---|
| Toggle sidebar | ⌘B |
| Explorer | ⇧⌘E |
| Extensions | ⇧⌘X |
| Source Control | ⌃⇧G |
| Show integrated terminal | ⌃` |
| New terminal | ⌃⇧` |
| Toggle breakpoint | F9 |
| Start / continue debugging | F5 |
| Step over | F10 |
Source: Microsoft · code.visualstudio.com · retrieved . Unofficial reference. Not affiliated with Microsoft. How we source shortcuts →
Free printable VS Code cheat sheet
The essential shortcuts on one page (PDF, 24 × 20 cm), for your keyboard and language.
VS Code shortcut questions
- What is the shortcut for “Command Palette” in VS Code on Mac?
- Press ⇧⌘P. That is the shortcut for “Command Palette” in VS Code on Mac, as given in the official documentation.
- What is the shortcut for “Quick Open, go to file” in VS Code on Mac?
- Press ⌘P. That is the shortcut for “Quick Open, go to file” in VS Code on Mac, as given in the official documentation.
- What is the shortcut for “Save” in VS Code on Mac?
- Press ⌘S. That is the shortcut for “Save” in VS Code on Mac, as given in the official documentation.
- Where do these VS Code shortcuts come from?
- From Microsoft’s official documentation at code.visualstudio.com, retrieved November 19, 2026. Every key is copied from there, never from other websites.