Hotkeys and shortcuts for Visual Studio Code (Windows)
(Total 124)
Ctrl + ↑ Shift + P then F1 |
GeneralF1 Show Command Palette |
Ctrl + P |
NavigationGo to file |
Ctrl + ↑ Shift + N |
GeneralNew window/instance |
Ctrl + ↑ Shift + W |
GeneralClose window/instance |
Ctrl + , |
GeneralUser Settings |
Ctrl + K then Ctrl + S |
GeneralKeyboard Shortcuts |
Ctrl + X |
Basic editingCut line (empty selection) |
Ctrl + C |
Integrated terminalCopy selection |
Alt + ↑ ↓ |
Basic editingMove line up/down |
↑ Shift + Alt + ↑ ↓ |
Basic editingCopy line up/down |
Ctrl + ↑ Shift + K |
Basic editingDelete line |
Ctrl + ⤶ Enter |
Basic editingInsert line below |
Ctrl + ↑ Shift + ⤶ Enter |
Basic editingInsert line above |
Ctrl + ↑ Shift + \ |
Basic editingJump to matching bracket |
Ctrl + ] |
Basic editingIndent/outdent line |
Ctrl + [ |
Basic editingIndent/outdent line |
Home |
Basic editingGo to beginning of line |
End |
Basic editingGo to end of line |
Ctrl + Home |
Integrated terminalScroll to top |
Ctrl + End |
Integrated terminalScroll to bottom |
Ctrl + ↑ ↓ |
Integrated terminalScroll up/down |
Alt + Page Up |
Basic editingScroll page up |
Alt + Page Down |
Basic editingScroll page down |
Ctrl + ↑ Shift + [ |
Basic editingFold (collapse) region |
Ctrl + ↑ Shift + ] |
Basic editingUnfold (uncollapse) region |
Ctrl + K then Ctrl + [ |
Basic editingFold (collapse) all subregions |
Ctrl + K then Ctrl + ] |
Basic editingUnfold (uncollapse) all subregions |
Ctrl + K then Ctrl + 0 |
Basic editingFold (collapse) all regions |
Ctrl + K then Ctrl + J |
Basic editingUnfold (uncollapse) all regions |
Ctrl + K then Ctrl + C |
Basic editingAdd line comment |
Ctrl + K then Ctrl + U |
Basic editingRemove line comment |
Ctrl + / |
Basic editingToggle line comment |
↑ Shift + Alt + A |
Basic editingToggle block comment |
Alt + Z |
Basic editingToggle word wrap |
Ctrl + T |
NavigationShow all symbols |
Ctrl + G |
NavigationGo to line |
Ctrl + ↑ Shift + O |
NavigationGo to symbol |
Ctrl + ↑ Shift + M |
NavigationShow Problems panel |
F8 |
NavigationGo to next error or warning |
↑ Shift + F8 |
NavigationGo to previous error or warning |
Ctrl + ↑ Shift + ⭾ Tab |
File managementOpen previous |
Alt + ← → |
NavigationGo back / forward |
Ctrl + M |
NavigationToggle Tab moves focus |
Ctrl + F |
Search and replaceFind |
Ctrl + H |
Search and replaceReplace |
F3 |
Search and replaceFind next |
↑ Shift + F3 |
Search and replaceFind previous |
Alt + ⤶ Enter |
Search and replaceSelect all occurences of Find match |
Ctrl + D |
Search and replaceAdd selection to next Find match |
Ctrl + K then Ctrl + D |
Search and replaceMove last selection to next Find match |
Alt + C |
Search and replaceToggle case-sensitive |
Alt + R |
Search and replaceToggle regex |
Alt + W |
Search and replaceToggle whole word |
Alt + Mouse left click |
Multi-cursor and selectionInsert cursor |
Ctrl + Alt + ↑ ↓ |
Multi-cursor and selectionInsert cursor above / below |
Ctrl + U |
Multi-cursor and selectionUndo last cursor operation |
↑ Shift + Alt + I |
Multi-cursor and selectionInsert cursor at end of each line selected |
Ctrl + I |
Multi-cursor and selectionSelect current line |
Ctrl + ↑ Shift + L |
Multi-cursor and selectionSelect all occurrences of current selection |
Ctrl + F2 |
Multi-cursor and selectionSelect all occurrences of current word |
↑ Shift + Alt + → |
Multi-cursor and selectionExpand selection |
↑ Shift + Alt + ← |
Multi-cursor and selectionShrink selection |
↑ Shift + Alt + Mouse movement |
Multi-cursor and selectionColumn (box) selection |
Ctrl + ↑ Shift + Alt + ← ↑ → ↓ |
Multi-cursor and selectionColumn (box) selection |
Ctrl + Shift + Alt + Page Up |
Multi-cursor and selectionColumn (box) selection page up |
Ctrl + Shift + Alt + Page Down |
Multi-cursor and selectionColumn (box) selection page down |
Ctrl + Space |
Rich languages editingTrigger suggestion |
Ctrl + ↑ Shift + Space |
Rich languages editingTrigger parameter hints |
↑ Shift + Alt + F |
Rich languages editingFormat document |
Ctrl + K then Ctrl + F |
Rich languages editingFormat selection |
F12 |
Rich languages editingGo to Definition |
Alt + F12 |
Rich languages editingPeek Definition |
Ctrl + K then F12 |
Rich languages editing12 Open Definition to the side |
Ctrl + . |
Rich languages editingQuick Fix |
↑ Shift + F12 |
Rich languages editingShow References |
F2 |
Rich languages editingRename Symbol |
Ctrl + K then Ctrl + X |
Rich languages editingTrim trailing whitespace |
Ctrl + K then M |
Rich languages editingM Change file language |
Ctrl + F4 then Ctrl + W |
Editor managementClose editor |
Ctrl + K |
DisplayZ Zen Mode (Esc Esc to exit) |
Ctrl + \ |
Editor managementSplit editor |
Ctrl + 1 |
Editor managementFocus into first group |
Ctrl + 2 |
Editor managementFocus into second group |
Ctrl + 3 |
Editor managementFocus into third group |
Ctrl + K then Ctrl + ← → |
Editor managementFocus into previous/next editor group |
Ctrl + Shift + Page Up |
Editor managementMove editor left |
Ctrl + Shift + Page Down |
Editor managementMove editor right |
Ctrl + K then ← → |
Editor managementht Move active editor group |
Ctrl + N |
File managementNew File |
Ctrl + O |
File managementOpen File |
Ctrl + S |
File managementSave |
Ctrl + ↑ Shift + S |
File managementSave As |
Ctrl + F4 |
File managementClose |
Ctrl + K then Ctrl + W |
File managementClose All |
Ctrl + ↑ Shift + T |
File managementReopen closed editor |
Ctrl + ⭾ Tab |
File managementOpen next |
Ctrl + K then P |
File managementP Copy path of active file |
Ctrl + K then R |
File managementR Reveal active file in Explorer |
Ctrl + K then O |
File managementO Show active file in new window/instance |
F11 |
DebugStep into |
↑ Shift + Alt + 1 |
DisplayToggle editor layout (horizontal/vertical) |
Ctrl + = |
DisplayZoom in |
Ctrl + - |
DisplayZoom out |
Ctrl + B |
DisplayToggle Sidebar visibility |
Ctrl + ↑ Shift + E |
DisplayShow Explorer / Toggle focus |
Ctrl + ↑ Shift + F |
DisplayShow Search |
Ctrl + ↑ Shift + G |
DisplayShow Source Control |
Ctrl + ↑ Shift + D |
DisplayShow Debug |
Ctrl + ↑ Shift + X |
DisplayShow Extensions |
Ctrl + ↑ Shift + H |
DisplayReplace in files |
Ctrl + ↑ Shift + J |
DisplayToggle Search details |
Ctrl + ↑ Shift + U |
DisplayShow Output panel |
Ctrl + ↑ Shift + V |
DisplayOpen Markdown preview |
F9 |
DebugToggle breakpoint |
F5 |
DebugStart/Continue |
↑ Shift + F5 |
DebugStop |
↑ Shift + F11 |
DebugStep out |
F10 |
DebugStep over |
Ctrl + K then Ctrl + I |
DebugShow hover |
Ctrl + ` |
Integrated terminalShow integrated terminal |
Ctrl + ↑ Shift + ` |
Integrated terminalCreate new terminal |
Ctrl + V |
Integrated terminalPaste into active terminal |
Shift + Page Up |
Integrated terminalScroll page up |
Shift + Page Down |
Integrated terminalScroll page down |