VS Code Shortcuts Cheat Sheet (Windows & Mac)
A complete printable VS Code keyboard shortcuts reference for faster coding and navigation.
No shortcuts match your search. Try a different keyword.
Basic Editing
| Action | Windows | Mac |
|---|---|---|
| Copy line down | Shift + Alt + ↓ | Shift + Option + ↓ |
| Move line down | Alt + ↓ | Option + ↓ |
| Undo last edit | Ctrl + Z | ⌘ + Z |
| Redo undone edit | Ctrl + Y | ⌘ + Shift + Z |
| Delete current line | Ctrl + Shift + K | ⌘ + Shift + K |
| Add cursor above | Ctrl + Alt + ↑ | ⌥ + ⌘ + ↑ |
Navigation
| Action | Windows | Mac |
|---|---|---|
| Quick open file | Ctrl + P | ⌘ + P |
| Go to line number | Ctrl + G | ⌃ + G |
| Switch open editors | Ctrl + Tab | ⌃ + Tab |
| Open Command Palette | Ctrl + Shift + P | ⌘ + Shift + P |
| Navigate editor back | Alt + ← | ⌃ + - |
| Navigate editor forward | Alt + → | ⌃ + Shift + - |
Selection
| Action | Windows | Mac |
|---|---|---|
| Select next matching word | Ctrl + D | ⌘ + D |
| Select all matches | Ctrl + Shift + L | ⌘ + Shift + L |
| Expand selection scope | Shift + Alt + → | Shift + Option + → |
| Select entire line | Ctrl + L | ⌘ + L |
| Column selection mode | Shift + Alt + Drag | Shift + Option + Drag |
View & Panels
| Action | Windows | Mac |
|---|---|---|
| Toggle sidebar visibility | Ctrl + B | ⌘ + B |
| Toggle integrated terminal | Ctrl + ` | ⌃ + ` |
| Enter Zen Mode | Ctrl + K, Z | ⌘ + K, Z |
| Split editor side by side | Ctrl + \ | ⌘ + \ |
| Toggle bottom panel | Ctrl + J | ⌘ + J |
Debug & Refactor
| Action | Windows | Mac |
|---|---|---|
| Start or continue debug | F5 | F5 |
| Toggle line breakpoint | F9 | F9 |
| Go to symbol definition | F12 | F12 |
| Find all references | Shift + F12 | Shift + F12 |
| Rename symbol in scope | F2 | F2 |
Download & Print
Free to use. No login required.
Frequently Asked Questions
QWhat are the most useful VS Code shortcuts?
Ctrl+P quick open, Ctrl+Shift+P command palette, Ctrl+D multi-select, F12 go to definition, and Ctrl+` terminal toggle are the highest-impact keys for daily coding.
QIs there a printable VS Code shortcuts cheat sheet?
Yes. Download PDF Cheat Sheet or Print Version on this page to keep a desk reference of every shortcut listed here.
QWhat is Ctrl + Shift + P in VS Code?
Ctrl + Shift + P opens the Command Palette, letting you run any VS Code command by name without memorizing individual key bindings.
QHow do I learn VS Code shortcuts fast?
Replace mouse habits one at a time: quick open for files, command palette for actions, then multi-cursor and go-to-definition during real edits.
QAre VS Code shortcuts the same on Mac?
Most bindings match, but Ctrl becomes 鈱?on Mac. Some combos use 鈱?or 鈱?instead. This cheat sheet shows both platforms side by side.