Skip to content
Hotkys
All apps
Visual Studio Code icon

Visual Studio Code Keyboard Shortcuts

Write and debug code across your projects.

52 shortcuts / 10 sections

General

5
Show Command Palette
Shift Command P
Quick Open, Go to File…
Command P
New window/instance
Shift Command N
Close window/instance
Command W
User Settings
CMD

Basic editing

5
Cut line (empty selection)
Command X
Copy line (empty selection)
Command C
Delete line
Shift Command K
Toggle block comment
Shift Option A
Toggle word wrap
Option Z

Rich language editing

4
Trigger suggestion
Control Space
Trigger parameter hints
Shift Command Space
Format document
Shift Option F
Quick Fix
Command .

Editor management

1
Close editor
Command W

Display

12
Toggle full screen
Control Command F
Toggle editor layout (horizontal/vertical)
Option Command 0
Toggle Sidebar visibility
Command B
Show Explorer / Toggle focus
Shift Command E
Show Search
Shift Command F
Show Source Control
Control Shift G
Show Debug
Shift Command D
Show Extensions
Shift Command X
Replace in files
Shift Command H
Toggle Search details
Shift Command J
Show Output panel
Shift Command U
Open Markdown preview
Shift Command V

File management

7
New File
Command N
Open File...
Command O
Save
Command S
Save As...
Shift Command S
Save All
Option Command S
Close
Command W
Reopen closed editor
Shift Command T

Integrated terminal

1
Copy selection
Command C

Multi-cursor selection

6
Insert cursor above
Option Command Up Arrow
Insert cursor below
Option Command Down Arrow
Undo last cursor operation
Command U
Insert cursor at end of each line selected
Shift Option I
Select current line
Command I
Select all occurrences of current selection
Shift Command L