Visual Studio Code Keyboard Shortcuts
Write and debug code across your projects.
⌘K
52 shortcuts / 10 sections
General
5Show Command Palette
⇧⌘PShift Command P
Quick Open, Go to File…
⌘PCommand P
New window/instance
⇧⌘NShift Command N
Close window/instance
⌘WCommand W
User Settings
CMDCMD
Basic editing
5Cut line (empty selection)
⌘XCommand X
Copy line (empty selection)
⌘CCommand C
Delete line
⇧⌘KShift Command K
Toggle block comment
⇧⌥AShift Option A
Toggle word wrap
⌥ZOption Z
Rich language editing
4Trigger suggestion
⌃SpaceControl Space
Trigger parameter hints
⇧⌘SpaceShift Command Space
Format document
⇧⌥FShift Option F
Quick Fix
⌘.Command .
Editor management
1Close editor
⌘WCommand W
Search and replace
4Find
⌘FCommand F
Replace
⌥⌘FOption Command F
Select all occurrences of Find match
⌥↩Option Enter
Add selection to next Find match
⌘DCommand D
Display
12Toggle full screen
⌃⌘FControl Command F
Toggle editor layout (horizontal/vertical)
⌥⌘0Option Command 0
Toggle Sidebar visibility
⌘BCommand B
Show Explorer / Toggle focus
⇧⌘EShift Command E
Show Search
⇧⌘FShift Command F
Show Source Control
⌃⇧GControl Shift G
Show Debug
⇧⌘DShift Command D
Show Extensions
⇧⌘XShift Command X
Replace in files
⇧⌘HShift Command H
Toggle Search details
⇧⌘JShift Command J
Show Output panel
⇧⌘UShift Command U
Open Markdown preview
⇧⌘VShift Command V
File management
7New File
⌘NCommand N
Open File...
⌘OCommand O
Save
⌘SCommand S
Save As...
⇧⌘SShift Command S
Save All
⌥⌘SOption Command S
Close
⌘WCommand W
Reopen closed editor
⇧⌘TShift Command T
Integrated terminal
1Copy selection
⌘CCommand C
Multi-cursor selection
6Insert cursor above
⌥⌘↑Option Command Up Arrow
Insert cursor below
⌥⌘↓Option Command Down Arrow
Undo last cursor operation
⌘UCommand U
Insert cursor at end of each line selected
⇧⌥IShift Option I
Select current line
⌘ICommand I
Select all occurrences of current selection
⇧⌘LShift Command L