Visual Studio Code is a lightweight, extensible code editor that has become a default for many developers. Its keyboard shortcuts drive the command palette, multi-cursor editing, and quick file switching, making it easy to navigate and edit code at speed.
Official:Official site
All Visual Studio Code keyboard shortcuts (Mac)
+ 2 more controls in the table below
+ 2 more controls in the table below
52 shortcuts
Editing 12
| Action | Shortcut |
|---|---|
| Cut Line | ⌘X |
| Copy Line | ⌘C |
| Move Line Up | ⌥↑ |
| Move Line Down | ⌥↓ |
| Toggle Line Comment | ⌘/ |
| Format Document | ⇧⌥F |
| Delete Line | ⌘⇧K |
| Copy Line Down | ⇧⌥↓ |
| Copy Line Up | ⇧⌥↑ |
| Indent Line | ⌘] |
| Outdent Line | ⌘[ |
| Toggle Block Comment | ⇧⌥A |
Navigation 7
| Action | Shortcut |
|---|---|
| Go to Definition | F12 |
| Go to Line | ⌃G |
| Go to Symbol | ⌘⇧O |
| Go Back | ⌃− |
| Go Forward | ⌃⇧− |
| Peek Definition | ⌥F12 |
| Jump to Matching Bracket | ⌘⇧\ |
Multi-cursor 6
| Action | Shortcut |
|---|---|
| Add Cursor to Next Match | ⌘D |
| Select All Occurrences | ⌘⇧L |
| Add Cursor Above | ⌥⌘↑ |
| Add Cursor Below | ⌥⌘↓ |
| Expand Selection | ⌃⇧⌘→ |
| Shrink Selection | ⌃⇧⌘← |
Display 6
| Action | Shortcut |
|---|---|
| Toggle Sidebar | ⌘B |
| Toggle Panel | ⌘J |
| Split Editor | ⌘\ |
| Toggle Zen Mode | ⌘KthenZ |
| Zoom In | ⌘= |
| Zoom Out | ⌘− |
General 4
| Action | Shortcut |
|---|---|
| Show Command Palette | ⌘⇧P |
| Quick Open File | ⌘P |
| Open Settings | ⌘, |
| Open Keyboard Shortcuts | ⌘Kthen⌘S |
Search 4
| Action | Shortcut |
|---|---|
| Find | ⌘F |
| Search Across Files | ⌘⇧F |
| Replace | ⌥⌘F |
| Replace Across Files | ⌘⇧H |
File 4
| Action | Shortcut |
|---|---|
| Save | ⌘S |
| New File | ⌘N |
| Close Editor | ⌘W |
| Save As | ⌘⇧S |
Debug 4
| Action | Shortcut |
|---|---|
| Start / Continue Debugging | F5 |
| Toggle Breakpoint | F9 |
| Step Over | F10 |
| Step Into | F11 |
Languages 3
| Action | Shortcut |
|---|---|
| Trigger Suggestion | ⌃␣ |
| Rename Symbol | F2 |
| Quick Fix | ⌘. |
Terminal 2
| Action | Shortcut |
|---|---|
| Toggle Terminal | ⌃` |
| New Terminal | ⌃⇧` |
Sourced from code.visualstudio.com Last verified
Unofficial reference. ShortcutPosters is not affiliated with, endorsed by, or sponsored by Visual Studio Code. All product names, logos, and trademarks are property of their respective owners. See our licensing & trademark notice.
Get the Visual Studio Code poster
4 art directions — pick one below, click to zoom & compare.
A printable, framed-quality poster of the essential Visual Studio Code shortcuts for Mac — the keys worth keeping in view, designed to stay readable on a wall.
Free PNG is web-resolution & watermarked.
These shortcuts, on physical keys
There is a Stream Deck profile for VS Code — 103 shortcuts laid out across the keys, each one labelled, installed by double-clicking a file. It fits every current Stream Deck model.
Frequently asked questions
- Does the poster include every Visual Studio Code shortcut?
- Visual Studio Code has 52 keyboard shortcuts on macOS — the complete list is free to read on this page. The poster features the most essential ones, curated to stay readable on a wall.
- Can I print it at home?
- Yes. The digital download is a high-resolution 300 DPI file you can print at home or at any print shop, in standard frame sizes.
- Does it cover both Mac and Windows?
- We sell a separate edition per platform so every key matches your keyboard exactly. This page is the macOS edition.
- Is this an official Visual Studio Code product?
- No. This is an unofficial reference poster and is not affiliated with or endorsed by Visual Studio Code. All trademarks belong to their respective owners.
Thanks — your feedback helps us improve.
Promote your app
Built an app with great keyboard shortcuts? Get it into the database — a free, searchable reference page, and an optional printable poster your power users will pin to the wall.
- Free shortcut reference page
- Indexed & searchable
- Optional framed poster