Shape shortcuts come from shape/config/keybindings.json plus workbench and editor commands registered in the command palette. Most use Ctrl on Windows.
Open the command palette (Ctrl+Shift+P) to find actions by name. Assigned shortcuts appear on the right.
File and workspace
| Action | Shortcut |
|---|
| New Text File | Ctrl+N |
| New Window | Ctrl+Shift+N |
| Open File | Ctrl+O |
| Open Folder | Ctrl+K Ctrl+O |
| Close Folder | Ctrl+K Ctrl+W |
| Save | Ctrl+S |
| Save As | Ctrl+Shift+S |
| Save All | Ctrl+K S |
| Close Tab | Ctrl+W |
| Close All Tabs | Ctrl+K E |
| Recent Files | Ctrl+E |
| Close Window | Alt+F4 |
Navigation and search
| Action | Shortcut |
|---|
| Go to File | Ctrl+P |
| Command Palette | Ctrl+Shift+P |
| Go to Line/Column | Ctrl+G |
| Go to Symbol in Workspace | Ctrl+T |
| Find in Files | Ctrl+Shift+F |
| Replace in Files | Ctrl+H |
| Explorer | Ctrl+Shift+E |
| Search sidebar | Ctrl+Shift+F |
| Source Control | Ctrl+Shift+G |
Edit
| Action | Shortcut |
|---|
| Undo | Ctrl+Z |
| Redo | Ctrl+Y |
| Cut | Ctrl+X |
| Copy | Ctrl+C |
| Paste | Ctrl+V |
| Select All | Ctrl+A |
| Toggle Line Comment | Ctrl+/ |
| Toggle Block Comment | Shift+Alt+A |
| Indent Line | Ctrl+] |
| Outdent Line | Ctrl+[ |
| Move Line Up / Down | Alt+↑ / Alt+↓ |
| Duplicate Line Down | Shift+Alt+↓ |
| Add Cursor Above / Below | Ctrl+Alt+↑ / Ctrl+Alt+↓ |
| Join Lines | Command palette |
| Transform to Uppercase / Lowercase | Command palette |
| Action | Shortcut |
|---|
| Format Document | Alt+Shift+F |
| Format Selection | Ctrl+K Ctrl+F |
| Quick Fix | Ctrl+. |
| Rename Symbol | F2 |
| Organize Imports | Shift+Alt+O |
Go to symbol
| Action | Shortcut |
|---|
| Go to Definition | F12 |
| Peek Definition | Alt+F12 |
| Find All References | Shift+F12 |
| Go to Next Problem | F8 |
| Go to Previous Problem | Shift+F8 |
View and panels
| Action | Shortcut |
|---|
| Toggle Terminal Panel | Ctrl+` |
| New Terminal | Ctrl+Shift+` |
| Problems | Ctrl+Shift+M |
| Toggle Word Wrap | Alt+Z |
| Open Settings | Ctrl+, |
| Toggle AI Chat | Ctrl+L |
| Zen Mode | Ctrl+K Z |
| Fold All | Ctrl+K Ctrl+0 |
| Unfold All | Ctrl+K Ctrl+J |
Browser and visual design
These apply while the Browser tab is focused.
| Action | Shortcut |
|---|
| Toggle design mode | Ctrl+Shift+D |
| Toggle inspect vs page interaction | Ctrl+I |
| Undo / redo design preview | Ctrl+Z / Ctrl+Y |
| Clear selection | Escape |
| Back / Forward | Alt+← / Alt+→ |
Git hunks
In a Working Tree or Index diff tab:
| Action | Shortcut |
|---|
| Stage hunk (unstaged) | Ctrl+Y |
| Unstage hunk (staged) | Ctrl+Shift+Y |
Bookmarks
| Action | Shortcut |
|---|
| Toggle Bookmark | Ctrl+Alt+B |
| Next Bookmark | Ctrl+F2 |
| Previous Bookmark | Shift+F2 |
Palette-only commands
These commands have no default shortcut. Run them from Ctrl+Shift+P:
- View: Show Problems
- View: Show Output
- Editor: Toggle Minimap
- Editor: Toggle Inlay Hints
- Chat: Show History
- Change Language Mode…
- View: Toggle Zen Mode (also Ctrl+K Z)
Chords
Some shortcuts use two steps. Press the first chord, release, then press the second:
| Action | Chord |
|---|
| Zen Mode | Ctrl+K, then Z |
| Save All | Ctrl+K, then S |
| Close All Tabs | Ctrl+K, then E |
| Format Selection | Ctrl+K, then Ctrl+F |
| Fold All | Ctrl+K, then Ctrl+0 |
| Unfold All | Ctrl+K, then Ctrl+J |