VS Code Keyboard Shortcuts For Windows

Windows is the most popular operating system. Many developers use Windows because it is easy to use. If you are a programmer and using VS Code on your Windows machine then these shortcuts are going to save your time.

Keyboard Shortcut VS Code Windows

Basic editing

WorkKeyboard Shortcut
Show Command PaletteCtrl+Shift+P,F1
Quick Open,Go to FileCtrl+P
New window/instanceCtrl+Shift+N
Close window/instanceCtrl+Shift+W
User SettingsCtrl+,
Keyboard ShortcutsCtrl+K Ctrl+S
Cut line(empty selection)Ctrl+X
Copy line(empty selection)Ctrl+C
Move line up/downAlt+↑/↓
Copy line up/downShift+Alt+↓/↑
Delete lineCtrl+Shift+K
Insert line belowCtrl+Enter
Insert line aboveCtrl+Shift+Enter
Jump to matching bracketCtrl+Shift+
Indent/outdent lineCtrl+]/[
Go to beginning/end of lineHome/End
Go to beginning of fileCtrl+Home
Go to end of fileCtrl+End
Scroll line up/downCtrl+↑/↓ 
Scroll page up/downAlt+PgUp/PgDn
Fold(collapse)regionCtrl+Shift+[ 
Unfold(uncollapse)regionCtrl+Shift+]
Fold(collapse)all subregionsCtrl+K Ctrl+[
Unfold(uncollapse)all subregionsCtrl+K Ctrl+]
Fold(collapse)all regionsCtrl+K Ctrl+0
Unfold(uncollapse)all regionsCtrl+K Ctrl+J
Add line commentCtrl+K Ctrl+C
Remove line commentCtrl+K Ctrl+U
Toggle line commentCtrl+/
Toggle block commentShift+Alt+A
Toggle word wrapAlt+Z
Show all SymbolsCtrl+T
Go to Line...Ctrl+G
Go to File...Ctrl+P
Go to Symbol...Ctrl+Shift+O
Show Problems panelCtrl+Shift+M
Go to next error or warningF8
Go to previous error or warningShift+F8
Navigate editor group historyCtrl+Shift+Tab
Go back/forwardAlt+←/→ 

Search and replace

WorkKeyboard Shortcut
FindCtrl+F
ReplaceCtrl+H
Find next/previousF3/Shift+F3
Select all occurences of Find matchAlt+Enter
Add selection to next Find matchCtrl+D
Move last selection to next Find matchCtrl+K Ctrl+D
Toggle case-sensitive/regex/whole wordAlt+C/R/W

Multi-cursor and selection

WorkKeyboard Shortcut
Insert cursorAlt+Click
Insert cursor above/belowCtrl+Alt+↑/↓
Undo last cursor operationCtrl+U
Insert cursor at end of each line selectedShift+Alt+I
Select current lineCtrl+L
Select all occurrences of current selectionCtrl+Shift+L
Select all occurrences of current wordCtrl+F2
Expand selectionShift+Alt+→
Shrink selectionShift+Alt+←
Column(box)selectionShift+Alt+(drag mouse)
Column(box)selectionCtrl+Shift+Alt+(arrow key)

Rich languages editing

WorkKeyboard Shortcut
Trigger suggestionCtrl+Space
Trigger parameter hintsCtrl+Shift+Space
Format documentShift+Alt+F
Format selectionCtrl+K Ctrl+F
Go to DefinitionF12
Peek DefinitionAlt+F12
Open Definition to the sideCtrl+K F12
Quick FixCtrl+.
Show ReferencesShift+F12
Rename SymbolF2
Trim trailing whitespaceCtrl+K Ctrl+X

File management, Display, Debug

WorkKeyboard Shortcut
New FileCtrl+N
Open File...Ctrl+O
SaveCtrl+S
Save As...Ctrl+Shift+S
Save AllCtrl+K S
CloseCtrl+F4
Close AllCtrl+K Ctrl+W
Reopen closed editorCtrl+Shift+T
Keep preview mode editor openCtrl+K Enter
Open nextCtrl+Tab
Open previousCtrl+Shift+Tab
Copy path of active fileCtrl+K P
Reveal active file in ExplorerCtrl+K R
Show active file in new window/instanceCtrl+K O
Toggle full screenF11
Toggle editor layout(horizontal/vertical)Shift+Alt+0
Zoom in/outCtrl+=/ -
Toggle Sidebar visibilityCtrl+B
Show Explorer/Toggle focusCtrl+Shift+E
Show SearchCtrl+Shift+F
Show Source ControlCtrl+Shift+G
Show DebugCtrl+Shift+D
Show ExtensionsCtrl+Shift+X
Replace in filesCtrl+Shift+H
Toggle Search detailsCtrl+Shift+J
Show Output panelCtrl+Shift+U
Open Markdown previewCtrl+Shift+V
Open Markdown preview to the sideCtrl+K V
Zen Mode(Esc Esc to exit)Ctrl+K Z
Toggle breakpointF9
Start/ContinueF5
StopShift+F5
Step into/outF11/Shift+F11
Step overF10

Integrated terminal

WorkKeyboard Shortcut
Show integrated terminalCtrl+`
Create new terminalCtrl+Shift+`
Copy selectionCtrl+C
Paste into active terminalCtrl+V
Scroll up/downCtrl+↑/↓
Scroll page up/downShift+PgUp/PgDn
Scroll to top/bottomCtrl+Home/End

 If you need the full PDF then click here to download it. It was created by the VS Code team. Check out our other articles about VS Code. Here is another post about the VS Code Keyboard Shortcuts For Linux.

Post a Comment (0)
Previous Post Next Post