Christmas gifts: delivery dates and last-minute ideas.10% off: MODKEY10 Gift guide →

VS Code keyboard shortcuts (Mac)

VS Code PosterGet 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 · Desk mat · Paper

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

Modifier
Keyboard
Point at or tap a key.

More shortcuts on this key with other modifiers.

With ⌘15 keys

All VS Code keyboard shortcuts for Mac

50 shortcuts

Files & general8

CommandShortcut
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

CommandShortcut
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

CommandShortcut
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

CommandShortcut
Trigger suggestion⌃Space
Format document⌥⇧F
Go to DefinitionF12
Peek Definition⌥F12
Show References⇧F12
Rename symbolF2
Quick Fix⌘.
Go to line⌃G
Go to symbol⇧⌘O
Problems panel⇧⌘M
Next error or warningF8

Panels, terminal & debug9

CommandShortcut
Toggle sidebar⌘B
Explorer⇧⌘E
Extensions⇧⌘X
Source Control⌃⇧G
Show integrated terminal⌃`
New terminal⌃⇧`
Toggle breakpointF9
Start / continue debuggingF5
Step overF10

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.

Learn it, then print it