VS Code Windows Shortcuts

80 shortcuts · View all OS →

WindowsmacOSLinuxCompare all
VS Code Windows keyboard shortcuts
ActionWindows Shortcut
General
Show Command PaletteCtrlShiftP
Quick Open / Go to FileCtrlP
New WindowCtrlShiftN
Close WindowCtrlShiftW
User SettingsCtrl,
Keyboard ShortcutsCtrlKCtrlS
Editing
Cut line (empty selection)CtrlX
Copy line (empty selection)CtrlC
Move line up/downAlt↑/↓
Copy line up/downAltShift↑/↓
Delete lineCtrlShiftK
Insert line belowCtrlEnter
Insert line aboveCtrlShiftEnter
Jump to matching bracketCtrlShift\
Indent / outdent lineCtrl]Ctrl[
Go to beginning of lineHome
Go to end of lineEnd
Go to beginning of fileCtrlHome
Go to end of fileCtrlEnd
Toggle line commentCtrl/
Toggle block commentAltShiftA
UndoCtrlZ
RedoCtrlY
Format documentAltShiftF
Format selectionCtrlKCtrlF
Multi-cursor & Selection
Insert cursor above/belowAltCtrl↑/↓
Undo last cursorCtrlU
Select all occurrences of current selectionCtrlShiftL
Select all occurrences of current wordCtrlF2
Add selection to next find matchCtrlD
Select current lineCtrlL
Column (box) selectionShiftAltdrag
Search & Replace
FindCtrlF
ReplaceCtrlH
Find next/previousF3ShiftF3
Toggle case-sensitiveAltC
Toggle regexAltR
Toggle whole wordAltW
Search across filesCtrlShiftF
Replace across filesCtrlShiftH
Navigation
Go to lineCtrlG
Go to symbol in fileCtrlShiftO
Go to symbol in workspaceCtrlT
Go to definitionF12
Peek definitionAltF12
Open definition to sideCtrlKF12
Go back / forwardAltAlt
Go to next error/warningF8
Show all referencesAltShiftF12
Editor Management
Close editorCtrlW
Close folderCtrlKF
Split editorCtrl\
Focus 1st/2nd/3rd editor groupCtrl1/2/3
Move editor left/rightCtrlShiftPgUp/PgDn
New editor group to the left/rightCtrlK←/→
File Management
New fileCtrlN
Open fileCtrlO
SaveCtrlS
Save asCtrlShiftS
Save allCtrlKS
Close all editorsCtrlKCtrlW
Display
Toggle full screenF11
Toggle sidebarCtrlB
Toggle terminalCtrl`
Toggle problems panelCtrlShiftM
Zoom in/outCtrl=Ctrl-
Reset zoomCtrl0
Zen modeCtrlKZ
Debug
Toggle breakpointF9
Start / continue debugF5
Stop debugShiftF5
Step overF10
Step intoF11
Step outShiftF11
Show hoverCtrlKCtrlI
Integrated Terminal
Create new terminalCtrlShift`
Copy selectionCtrlC
Scroll up/downCtrl↑/↓
Scroll page up/downShiftPgUp/PgDn
Scroll to top/bottomCtrlHome/End