VS CODE
Shortcuts
Master your coding speed with powerful shortcuts
Keyboard cheat sheet
Select a shortcut below to locate its keys.
Core shortcuts · 10
View in list ↓An editorial selection to learn recurring tasks first, in the same order as the core list below.
How core shortcuts are selected
These are editorial recommendations, not usage rankings. We prioritize recurring tasks, fewer mouse trips, and combinations that are easy to learn. App-specific actions are labeled.
The same layout at every screen size.
Core shortcuts · 10
CmdShiftPRun any command (Command Palette)
CmdPQuick Open, Go to File
CmdDAdd Selection to Next Find Match (Multi-cursor)
CmdShiftLSelect all occurrences of current selection
OptUp/DownMove line up/down
ShiftOptUp/DownCopy line up/down
CmdShift\Jump to matching bracket
CtrlGGo to line number
CmdBToggle Sidebar visibility
CmdJToggle Terminal / Panel visibility
01 — General
CmdShiftPShow Command Palette
CmdPQuick Open, Go to File
Cmd,Settings
CmdK CmdSKeyboard Shortcuts
CmdBToggle Side Bar visibility
Ctrl~Show integrated terminal
CmdShiftNNew window
02 — Basic Editing
Cmd/Toggle line comment
OptUp/DownMove line up/down
ShiftOptUp/DownCopy line up/down
CmdEnterInsert line below
CmdShiftEnterInsert line above
CmdShiftKDelete line
Cmd]Indent line
Cmd[Outdent line
03 — Multi-cursor
OptClickInsert cursor
CmdOptUp/DownInsert cursor above/below
CmdDAdd selection to next Find match
CmdUUndo last cursor operation
CmdShiftLSelect all occurrences of current selection
04 — Navigation
F12Go to Definition
CmdClickGo to Definition
ShiftF12Show References
CmdShiftOGo to Symbol
CtrlGGo to Line...
CmdShiftMShow Problems panel
05 — Search
CmdFFind
CmdOptionFReplace
CmdShiftFGlobal Find
CmdShiftHGlobal Replace