VS Code Windows Shortcuts

163 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
Select color themeCtrlKCtrlT
Open Chat viewCtrlAltI
Open Chat in agent modeCtrlShiftI
Open Quick ChatCtrlAltShiftL
Open language model pickerCtrlAlt.
Run build taskCtrlShiftB
Open inline chat in editorCtrlI
Open chat agent pickerCtrl.
Start a new chat sessionCtrlN
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
Toggle word wrapAltZ
Show parameter hintsCtrlShiftSpace
Select all occurrences of find matchAltEnter
Move line upAlt↑
Move line downAlt↓
Copy line downAltShift↓
PasteCtrlV
Copy line upAltShift↑
Move last selection to next find matchCtrlKCtrlD
Scroll one line downCtrl↓
Scroll one line upCtrl↑
Scroll one page downAltPageDown
Scroll one page upAltPageUp
Toggle folding of current regionCtrlKCtrlL
Fold all nested regionsCtrlKCtrl[
Unfold all nested regionsCtrlKCtrl]
Fold all regionsCtrlKCtrl0
Unfold all regionsCtrlKCtrlJ
Add line commentCtrlKCtrlC
Remove line commentCtrlKCtrlU
Replace with previous valueCtrlShift,
Expand syntax selectionAltShift→
Shrink syntax selectionAltShift←
Trim trailing whitespaceCtrlKCtrlX
Change file language modeCtrlKM
Fold current regionCtrlShift[
Unfold current regionCtrlShift]
Toggle Tab focus modeCtrlM
Trigger suggestionsCtrlSpace
Show quick fixesCtrl.
Rename symbolF2
Replace with next valueCtrlShift.
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
Insert cursor aboveCtrlAlt↑
Insert cursors at selected line endsAltShiftI
Search & Replace
FindCtrlF
ReplaceCtrlH
Find next/previousF3ShiftF3
Toggle case-sensitiveAltC
Toggle regexAltR
Toggle whole wordAltW
Search across filesCtrlShiftF
Replace across filesCtrlShiftH
Toggle search detailsCtrlShiftJ
Find previous match in find widgetShiftEnter
Focus previous search resultShiftF4
Next search term in Search view↓
Previous search term in Search view↑
Search again in Search EditorCtrlShiftR
Delete file results from Search EditorCtrlShiftBackspace
Open search results in Search EditorAltEnter
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 / forwardAlt←Alt→
Go to next error/warningF8
Show all referencesAltShiftF12
Navigate editor group historyCtrlTab
Go to previous error or warningShiftF8
Focus breadcrumbsCtrlShift;
Go back in Quick InputAlt←
Focus and select breadcrumbsCtrlShift.
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←/→
Focus first editor groupCtrl1
Focus second editor groupCtrl2
Focus third editor groupCtrl3
Focus editor group on the leftCtrlKCtrl←
Focus editor group on the rightCtrlKCtrl→
Move editor leftCtrlShiftPageUp
Move editor rightCtrlShiftPageDown
Move active editor group leftCtrlK←
Move active editor group rightCtrlK→
Move editor into next groupCtrlAlt→
Move editor into previous groupCtrlAlt←
File Management
New fileCtrlN
Open fileCtrlO
SaveCtrlS
Save asCtrlShiftS
Save allCtrlKS
Close all editorsCtrlKCtrlW
Reopen closed editorCtrlShiftT
Close editor groupCtrlKW
Keep preview editor openCtrlKEnter
Copy active file pathCtrlKP
Reveal active file in system file managerCtrlKR
Display
Toggle full screenF11
Toggle sidebarCtrlB
Toggle terminalCtrl`
Toggle problems panelCtrlShiftM
Zoom in/outCtrl=Ctrl-
Reset zoomCtrlNumpad0(numerickeypad)
Zen modeCtrlKZ
Show Source Control viewCtrlShiftG
Show Extensions viewCtrlShiftX
Quickly open a viewCtrlQ
Open preview to the sideCtrlKV
Show or focus ExplorerCtrlShiftE
Show Run viewCtrlShiftD
Show Output panelCtrlShiftU
Toggle Markdown previewCtrlShiftV
Debug
Toggle breakpointF9
Start / continue debugF5
Stop debugShiftF5
Step overF10
Step intoF11
Step outShiftF11
Show hoverCtrlKCtrlI
Start without debuggingCtrlF5
Integrated Terminal
Create new terminalCtrlShift`
Copy selectionCtrlC
Scroll up/downCtrl↑/↓
Scroll page up/downShiftPgUp/PgDn
Scroll to top/bottomCtrlHome/End
Open external terminalCtrlShiftC
Open inline chat in terminalCtrlI