Every shortcut and the Command Palette.
On macOS, press Cmd wherever this page says Ctrl.
Command Palette
Press CtrlShiftP and start typing a command's name: “zoom”, “auto save”, “scenario”. Every menu command is listed as Menu: Command, with its shortcut beside it. Use the arrow keys and Enter, or click. Esc closes it.
General
| Action | Shortcut |
|---|
| Command Palette | CtrlShiftP |
| Go to File | CtrlP |
| Toggle sidebar | CtrlB |
| Explorer | CtrlShiftE |
| Search in files | CtrlShiftF |
| Source Control | CtrlShiftG |
| Terminal / bottom panel | Ctrl` |
| AI assistant | CtrlJ |
| Zoom in | Ctrl+ |
| Zoom out | Ctrl- |
| Reset zoom | Ctrl0 |
| Full screen | F11 |
Files
| Action | Shortcut |
|---|
| New file | CtrlN |
| New folder | CtrlShiftN |
| Open file | CtrlO |
| Open folder | CtrlKCtrlO |
| Save | CtrlS |
| Save as | CtrlShiftS |
| Close editor tab | CtrlW |
| Quit | CtrlQ |
CtrlKCtrlO is a chord: press CtrlK, release, then CtrlO.
Editing
| Action | Shortcut |
|---|
| Undo | CtrlZ |
| Redo | CtrlY |
| Cut | CtrlX |
| Copy | CtrlC |
| Paste | CtrlV |
| Select all | CtrlA |
| Find in file | CtrlF |
| Find and replace in file | CtrlH |
| Go to definition | F12 |
| Quick fix (includes Fix with Lamied) | Ctrl. |
Go to definition needs a language server; see Extensions and language servers. You can also Ctrl+click a name.
Autocomplete
| Action | Shortcut |
|---|
| Accept the whole suggestion | Tab |
| Accept one word | Ctrl→ |
| Dismiss | Esc |
| Ask for a suggestion now | Alt\ |
See Autocomplete.
AI assistant
| Action | Shortcut |
|---|
| Send message | Enter |
| New line in a message | ShiftEnter |
| Stop the running task | Esc (with the message box focused) |
| Open the command list | / at the start of the message box |
| Pick a command | ↑ ↓ then Enter or Tab |
Source control
| Action | Shortcut |
|---|
| Commit (in the commit message box) | CtrlEnter |
Window
| Action | Shortcut |
|---|
| Minimize | CtrlM |
| Close window | AltF4 |