Docs menuKeyboard shortcuts

DocsEditor

Keyboard shortcuts

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

ActionShortcut
Command PaletteCtrlShiftP
Go to FileCtrlP
Toggle sidebarCtrlB
ExplorerCtrlShiftE
Search in filesCtrlShiftF
Source ControlCtrlShiftG
Terminal / bottom panelCtrl`
AI assistantCtrlJ
Zoom inCtrl+
Zoom outCtrl-
Reset zoomCtrl0
Full screenF11

Files

ActionShortcut
New fileCtrlN
New folderCtrlShiftN
Open fileCtrlO
Open folderCtrlKCtrlO
SaveCtrlS
Save asCtrlShiftS
Close editor tabCtrlW
QuitCtrlQ

CtrlKCtrlO is a chord: press CtrlK, release, then CtrlO.

Editing

ActionShortcut
UndoCtrlZ
RedoCtrlY
CutCtrlX
CopyCtrlC
PasteCtrlV
Select allCtrlA
Find in fileCtrlF
Find and replace in fileCtrlH
Go to definitionF12
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

ActionShortcut
Accept the whole suggestionTab
Accept one wordCtrl→
DismissEsc
Ask for a suggestion nowAlt\

See Autocomplete.

AI assistant

ActionShortcut
Send messageEnter
New line in a messageShiftEnter
Stop the running taskEsc (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

ActionShortcut
Commit (in the commit message box)CtrlEnter

Window

ActionShortcut
MinimizeCtrlM
Close windowAltF4