Work & productivity / QUICK REFERENCE

VS Code shortcuts

Navigate files, edit multiple selections and control your workspace using the default Windows key map.

36 entries

Editing and selections

Add next matching selection
Ctrl+D

Expands selections to successive matches. [3]

Select all matching text
Ctrl+Shift+L

Creates multiple selections from the current selection. [3]

Move line up
Alt+Up

Moves the selected line or lines. [3]

Move line down
Alt+Down

Preserves the selected text while repositioning it. [3]

Duplicate line down
Shift+Alt+Down

Windows default; Linux uses a different binding. [3]

Delete line
Ctrl+Shift+K

Removes the current line or selection of lines. [3]

Insert line below
Ctrl+Enter

Begins a new line below without moving to line end first. [3]

Insert line above
Ctrl+Shift+Enter

Begins a new line above. [3]

Toggle line comment
Ctrl+/

Comment syntax depends on language support. [3]

Format document
Shift+Alt+F

Requires a configured formatter. [3]

Quick Fix
Ctrl+.

Opens available context actions. [3]

Undo cursor change
Ctrl+U

Reverses a recent selection/cursor operation. [3]

Workspace and editor layout

Toggle sidebar
Ctrl+B

Hides or restores the main sidebar. [1]

Split editor
Ctrl+\

Opens another editor group. [1]

Focus first group
Ctrl+1

Moves keyboard focus to group one. [1]

Focus second group
Ctrl+2

Moves keyboard focus to group two. [1]

Toggle terminal
Ctrl+`

Opens or focuses the integrated terminal. [1]

Find across files
Ctrl+Shift+F

Searches workspace text. [1]

Replace across files
Ctrl+Shift+H

Review changes before applying replacements. [1]

Toggle word wrap
Alt+Z

Changes soft wrapping without modifying file text. [1]

Files, settings and previews

Save file
Ctrl+S

Writes the active file. [2]

Save all
Ctrl+K, S

Second key is S without Ctrl in the Windows default. [2]

Reopen closed editor
Ctrl+Shift+T

Restores a recently closed editor. [2]

Keyboard Shortcuts editor
Ctrl+K, Ctrl+S

Inspect actual bindings and conflicts. [2]

Open settings
Ctrl+,

Opens the Settings UI. [2]

Markdown preview
Ctrl+Shift+V

Previews the active Markdown document. [2]

Preview to the side
Ctrl+K, V

Opens the Markdown preview in another group. [2]

Zen mode
Ctrl+K, Z

Simplifies the workspace; Escape twice exits. [2]

Reserved placement, separate from reference controls. No ad network is active.

Updated Visual Studio Code · Windows defaults

Sources

  1. Default keyboard shortcuts ↗
  2. Keyboard shortcut configuration ↗
  3. Basic editing ↗