AppVS Code › Windows

VS Code Windows Shortcuts

80 shortcuts · View all OS →

WindowsmacOSLinuxCompare all
ActionWindows Shortcut
General
Show Command PaletteCtrl+Shift+P
Quick Open / Go to FileCtrl+P
New WindowCtrl+Shift+N
Close WindowCtrl+Shift+W
User SettingsCtrl+,
Keyboard ShortcutsCtrl+KCtrl+S
Editing
Cut line (empty selection)Ctrl+X
Copy line (empty selection)Ctrl+C
Move line up/downAlt+↑/↓
Copy line up/downAlt+Shift+↑/↓
Delete lineCtrl+Shift+K
Insert line belowCtrl+Enter
Insert line aboveCtrl+Shift+Enter
Jump to matching bracketCtrl+Shift+\
Indent / outdent lineCtrl+]/Ctrl+[
Go to beginning of lineHome
Go to end of lineEnd
Go to beginning of fileCtrl+Home
Go to end of fileCtrl+End
Toggle line commentCtrl+/
Toggle block commentAlt+Shift+A
UndoCtrl+Z
RedoCtrl+Y
Format documentAlt+Shift+F
Format selectionCtrl+KCtrl+F
Multi-cursor & Selection
Insert cursor above/belowAlt+Ctrl+↑/↓
Undo last cursorCtrl+U
Select all occurrences of current selectionCtrl+Shift+L
Select all occurrences of current wordCtrl+F2
Add selection to next find matchCtrl+D
Select current lineCtrl+L
Column (box) selectionShift+Alt+drag
Search & Replace
FindCtrl+F
ReplaceCtrl+H
Find next/previousF3/Shift+F3
Toggle case-sensitiveAlt+C
Toggle regexAlt+R
Toggle whole wordAlt+W
Search across filesCtrl+Shift+F
Replace across filesCtrl+Shift+H
Navigation
Go to lineCtrl+G
Go to symbol in fileCtrl+Shift+O
Go to symbol in workspaceCtrl+T
Go to definitionF12
Peek definitionAlt+F12
Open definition to sideCtrl+KF12
Go back / forwardAlt+/Alt+
Go to next error/warningF8
Show all referencesAlt+Shift+F12
Editor Management
Close editorCtrl+W
Close folderCtrl+KF
Split editorCtrl+\
Focus 1st/2nd/3rd editor groupCtrl+1/2/3
Move editor left/rightCtrl+Shift+PgUp/PgDn
New editor group to the left/rightCtrl+K←/→
File Management
New fileCtrl+N
Open fileCtrl+O
SaveCtrl+S
Save asCtrl+Shift+S
Save allCtrl+KS
Close all editorsCtrl+KCtrl+W
Display
Toggle full screenF11
Toggle sidebarCtrl+B
Toggle terminalCtrl+`
Toggle problems panelCtrl+Shift+M
Zoom in/outCtrl+=/Ctrl+-
Reset zoomCtrl+0
Zen modeCtrl+KZ
Debug
Toggle breakpointF9
Start / continue debugF5
Stop debugShift+F5
Step overF10
Step intoF11
Step outShift+F11
Show hoverCtrl+KCtrl+I
Integrated Terminal
Create new terminalCtrl+Shift+`
Copy selectionCtrl+C
Scroll up/downCtrl+↑/↓
Scroll page up/downShift+PgUp/PgDn
Scroll to top/bottomCtrl+Home/End