VS Code Window – Integrated terminal Cheat Sheet

Ctrl+`Show integrated terminal
Ctrl+Shift+`Create new terminal
Ctrl+CCopy selection
Ctrl+VPaste into active terminal
Ctrl+↑ / ↓Scroll up/down
Shift+PgUp / PgDnScroll page up/down
Ctrl+Home / EndScroll to top/bottom

VS Code Window – Display Cheat Sheet

F11Toggle full screen
Shift+Alt+0Toggle editor layout (horizontal/vertical)
Ctrl+ = / –Zoom in/out
Ctrl+BToggle Sidebar visibility
Ctrl+Shift+EShow Explorer / Toggle focus
Ctrl+Shift+FShow Search
Ctrl+Shift+GShow Source Control
Ctrl+Shift+DShow Debug
Ctrl+Shift+XShow Extensions
Ctrl+Shift+HReplace in files
Ctrl+Shift+JToggle Search details
Ctrl+Shift+UShow Output panel
Ctrl+Shift+VOpen Markdown preview
Ctrl+K VOpen Markdown preview to the side
Ctrl+K ZZen Mode (Esc Esc to exit)

VS Code Window – File management Cheat Sheet

Ctrl+NNew File
Ctrl+OOpen File…
Ctrl+Shift+SSave As…
Ctrl+K SSave All
Ctrl+K Ctrl+WClose All
Ctrl+Shift+TReopen closed editor
Ctrl+KEnter Keep preview mode editor open
Ctrl+TabOpen next
Ctrl+Shift+TabOpen previous
Ctrl+K PCopy path of the active file
Ctrl+K RReveal active file in Explorer
Ctrl+K OShow active file in a new window/instance

VS Code Window – Editor management Cheat Sheet

Ctrl+F4, Ctrl+WClose editor
Ctrl+K FClose folder
Ctrl+\Split editor
Ctrl+ 1 / 2 / 3Focus into 1st, 2nd or 3rd editor group
Ctrl+K Ctrl+ ←/→Focus into previous/next editor group
Ctrl+Shift+PgUp / PgDnMove editor left/right
Ctrl+K ← / →Move active editor group

VS Code Window – Multi-cursor and selection Cheat Sheet

Alt+ClickInsert cursor
Ctrl+Alt+ ↑ / ↓Insert cursor above / below
Ctrl+UUndo last cursor operation
Shift+Alt+IInsert cursor at end of each line selected
Ctrl+LSelect current line
Ctrl+Shift+LSelect all occurrences of current selection
Ctrl+F2Select all occurrences of the current word
Shift+Alt+→Expand the selection
Shift+Alt+←Shrink selection
Shift+Alt + (drag mouse)Column (box) selection
Ctrl+Shift+Alt (arrow key)Column (box) selection
Ctrl+Shift+Alt +PgUp/PgDnColumn (box) selection page up/down

VS Code Window – Search and replace Cheat Sheet

F3 / Shift+F3Find next/previous
Alt+EnterSelect all occurrences of Find match
Ctrl+DAdd selection to next Find match
Ctrl+K Ctrl+DMove last selection to next Find match
Alt+C / R / WToggle case-sensitive / regex / whole word

VS Code Window – Rich languages editing Cheat Sheet

Ctrl+SpaceTrigger suggestion
Ctrl+Shift+SpaceTrigger parameter hints
Shift+Alt+FFormat document
Ctrl+K Ctrl+FFormat selection
F12Go to Definition
Alt+F12Peek Definition
Ctrl+K F12Open Definition to the side
Ctrl+.Quick Fix
Shift+F12Show References
F2Rename Symbol
Ctrl+K Ctrl+XTrim trailing whitespace
Ctrl+K MChange file language

VS Code Window – Navigation Cheat Sheet

Ctrl+TShow all Symbols
Ctrl+GGo to Line…
Ctrl+PGo to File…
Ctrl+Shift+OGo to Symbol…
Ctrl+Shift+MShow Problems panel
F8Go to the error or warning
Shift+F8Go to previous error or warning
Ctrl+Shift+TabNavigate editor group history
Alt+ ← / →Go back / forward
Ctrl+MToggle Tab moves focus

VS Code Window – Editing Cheat Sheet

Ctrl+X Cut line (empty selection)
Ctrl+CCopy line (empty selection)
Alt+ ↑ / ↓Move line up/down
Shift+Alt + ↓ / ↑Copy line up/down
Ctrl+Shift+KDelete line
Ctrl+EnterInsert line below
Ctrl+Shift+EnterInsert line above
Ctrl+Shift+\Jump to matching bracket
Ctrl+] / [Indent/outdent line
Home / EndGo to beginning/end of line
Ctrl+HomeGo to beginning of file
Ctrl+EndGo to end of file
Ctrl+↑ / ↓Scroll line up/down
Alt+PgUp / PgDnScroll page up/down
Ctrl+Shift+[Fold (collapse) region
Ctrl+Shift+]Unfold (uncollapse) region
Ctrl+K Ctrl+[Fold (collapse) all subregions
Ctrl+K Ctrl+]Unfold (uncollapse) all subregions
Ctrl+K Ctrl+0Fold (collapse) all regions
Ctrl+K Ctrl+JUnfold (uncollapse) all regions
Ctrl+K Ctrl+CAdd line comment
Ctrl+K Ctrl+URemove line comment
Ctrl+/Toggle line comment
Shift+Alt+AToggle block comment
Alt+ZToggle word wrap

VS Code Window – General

Ctrl+Shift+P, F1Show Command Palette
Ctrl+PQuick Open, Go to File…
Ctrl+Shift+NNew window/instance
Ctrl+Shift+WClose window/instance
Ctrl+,User Settings
Ctrl+K Ctrl+SKeyboard Shortcuts