Click any shortcut to expand the explanation. Mac shortcuts listed first, Windows/Linux in parentheses.
βοΈ Editing
βD / Ctrl+D β Select next occurrence multi-cursor
Mac: βD Windows: Ctrl+DSelect a word, then press
βD repeatedly to select each next match. Edit them all at once. Skip one with βK βD / Ctrl+K Ctrl+D.
ββ§L / Ctrl+Shift+L β Select all occurrences multi-cursor
Mac: ββ§L Windows: Ctrl+Shift+LLike
βD but selects every match in the file instantly. Great for renaming a variable everywhere.
β₯Click / Alt+Click β Add cursor multi-cursor
Mac: β₯ + Click Windows: Alt + ClickClick at each position where you want a cursor, then type to edit all positions simultaneously.
β₯β§I / Alt+Shift+I β Cursors at line ends multi-cursor
Mac: β₯β§I Windows: Alt+Shift+ISelect multiple lines first, then press this to get a cursor at the end of each line. Perfect for adding semicolons or commas to multiple lines.
β₯β/β / Alt+β/β β Move line up/down lines
Mac: β₯β / β₯β Windows: Alt+β / Alt+βNo need to cut and paste β just move lines around directly.
β₯β§β/β / Alt+Shift+β/β β Copy line up/down lines
Mac: β₯β§β / β₯β§β Windows: Alt+Shift+β / Alt+Shift+βFastest way to duplicate a line. Works with multi-line selections too.
ββ§K / Ctrl+Shift+K β Delete line lines
Mac: ββ§K Windows: Ctrl+Shift+KNo need to select the line first. Works with multiple cursors too.
β/ / Ctrl+/ β Toggle comment editing
Mac: β/ Windows: Ctrl+/Automatically uses the correct comment syntax for the current language.Block comment: Mac: β₯β§A Windows: Alt+Shift+A
βH / Ctrl+H β Find and replace find
Mac: βH Windows: Ctrl+HEnable the regex button (Find in files: Mac: ββ§H Windows: Ctrl+Shift+H
.*) for powerful pattern-based replacements. Use $1, $2 for capture groups.
π§ Navigation
βP / Ctrl+P β Go to file essential
Mac: βP Windows: Ctrl+PThe single most important shortcut. Type fuzzy matches like
ucont to find UserController.ts. Add : followed by a line number to jump to that line.
ββ§P / Ctrl+Shift+P β Command palette essential
Mac: ββ§P Windows: Ctrl+Shift+PType any command: "format document", "change language", "toggle minimap", etc. If you forget any shortcut, find it here.
ββ§O / Ctrl+Shift+O β Go to symbol navigation
Mac: ββ§O Windows: Ctrl+Shift+OTypeGo to symbol in workspace: Mac: βT Windows: Ctrl+T
: after opening to group symbols by kind (functions, classes, etc.).
βG / Ctrl+G β Go to line navigation
Mac: βG Windows: Ctrl+GType the line number and press Enter. Useful when following error stack traces.
F12 / F12 β Go to definition navigation
Go to definition: F12 Peek definition: β₯F12 / Alt+F12 Go to references: β§F12 / Shift+F12 Go to type definition: (right-click menu)
β₯F12 (Peek) shows the definition inline without leaving your current file.
β- / Alt+β β Go back navigation
Go back: β- / Alt+β Go forward: ββ§- / Alt+βAfter jumping to a definition, press this to go back where you were. Works across files.
ββ§E / Ctrl+Shift+E β Explorer sidebar
Explorer: ββ§E / Ctrl+Shift+E Search: ββ§F / Ctrl+Shift+F Source Control: ββ§G / Ctrl+Shift+G Extensions: ββ§X / Ctrl+Shift+X Debug: ββ§D / Ctrl+Shift+D
π» Terminal & Panels
β` / Ctrl+` β Toggle terminal terminal
Toggle terminal: β` / Ctrl+` New terminal: ββ§` / Ctrl+Shift+` Split terminal: β\ / Ctrl+\You can have multiple terminals and switch between them.
βB / Ctrl+B β Toggle sidebar layout
Toggle sidebar: βB / Ctrl+B Toggle panel: βJ / Ctrl+J Zen mode: βK Z / Ctrl+K Z
Zen mode hides everything except the editor β great for focused coding.
π Debugging
F5 β Start/continue debugging debug
Start/Continue: F5 Stop: β§F5 / Shift+F5 Restart: ββ§F5 / Ctrl+Shift+F5 Step over: F10 Step into: F11 Step out: β§F11 / Shift+F11 Toggle breakpoint: F9Click in the gutter (left of line numbers) to set breakpoints, or press
F9.
π Git Integration
Git shortcuts git
Source Control view: ββ§G / Ctrl+Shift+GClick theFrom Command Palette (ββ§P): Git: Commit Git: Push Git: Pull Git: Checkout toβ¦ Git: Create Branch
+ icon next to changed files to stage them. The inline diff viewer shows changes side by side.
β‘ Power User
ββ§V / Ctrl+Shift+V β Markdown preview productivity
Preview: ββ§V / Ctrl+Shift+V Side-by-side preview: βK V / Ctrl+K VSide-by-side mode lets you edit and preview simultaneously.
βK βS / Ctrl+K Ctrl+S β Keyboard shortcuts editor customization
Mac: βK βS Windows: Ctrl+K Ctrl+SSearch for any command and assign your own keybinding. Click the record button to detect key combinations.
β, / Ctrl+, β Open settings customization
Settings UI: β, / Ctrl+, Settings JSON: ββ§P β "Open Settings (JSON)"The JSON view gives you more control. Some settings are only available in JSON.
Quick Reference Table
| Action | Mac | Windows/Linux |
|---|---|---|
| Open file | βP | Ctrl+P |
| Command palette | ββ§P | Ctrl+Shift+P |
| Toggle terminal | β` | Ctrl+` |
| Toggle sidebar | βB | Ctrl+B |
| Go to definition | F12 | F12 |
| Go back | β- | Alt+β |
| Find & replace | βH | Ctrl+H |
| Select next occurrence | βD | Ctrl+D |
| Select all occurrences | ββ§L | Ctrl+Shift+L |
| Move line up/down | β₯β/β | Alt+β/β |
| Duplicate line | β₯β§β/β | Alt+Shift+β/β |
| Delete line | ββ§K | Ctrl+Shift+K |
| Toggle comment | β/ | Ctrl+/ |
| Go to symbol | ββ§O | Ctrl+Shift+O |
| Start debugging | F5 | F5 |
| Toggle breakpoint | F9 | F9 |