AppsVS Code › macOS

VS Code macOS Shortcuts

80 shortcuts · View all OS →

WindowsmacOSLinuxCompare all
ActionmacOS Shortcut
General
Show Command Palette⌘⇧P
Quick Open / Go to File⌘P
New Window⌘⇧N
Close Window⌘⇧W
User Settings⌘,
Keyboard Shortcuts⌘K⌘S
Editing
Cut line (empty selection)⌘X
Copy line (empty selection)⌘C
Move line up/down⌥↑/↓
Copy line up/down⌥⇧↑/↓
Delete line⌘⇧K
Insert line below⌘Enter
Insert line above⌘⇧Enter
Jump to matching bracket⌘⇧\
Indent / outdent line⌘]/⌘[
Go to beginning of lineHome
Go to end of lineEnd
Go to beginning of file⌘↑
Go to end of file⌘↓
Toggle line comment⌘/
Toggle block comment⇧⌥A
Undo⌘Z
Redo⌘⇧Z
Format document⌥⇧F
Format selection⌘K⌘F
Multi-cursor & Selection
Insert cursor above/below⌥⌘↑/↓
Undo last cursor⌘U
Select all occurrences of current selection⌘⇧L
Select all occurrences of current word⌘F2
Add selection to next find match⌘D
Select current line⌘L
Column (box) selection⇧⌥drag
Search & Replace
Find⌘F
Replace⌥⌘F
Find next/previous⌘G/⌘⇧G
Toggle case-sensitive⌥⌘C
Toggle regex⌥⌘R
Toggle whole word⌥⌘W
Search across files⌘⇧F
Replace across files⌘⇧H
Navigation
Go to line⌃G
Go to symbol in file⌘⇧O
Go to symbol in workspace⌘T
Go to definitionF12
Peek definition⌥F12
Open definition to side⌘KF12
Go back / forward⌃-/⌃⇧-
Go to next error/warningF8
Show all references⇧F12
Editor Management
Close editor⌘W
Close folder⌘KF
Split editor⌘\
Focus 1st/2nd/3rd editor group⌘1/2/3
Move editor left/right⌘⇧PgUp/PgDn
New editor group to the left/right⌘K←/→
File Management
New file⌘N
Open file⌘O
Save⌘S
Save as⌘⇧S
Save all⌘⌥S
Close all editors⌘K⌘W
Display
Toggle full screen⌃⌘F
Toggle sidebar⌘B
Toggle terminal⌃`
Toggle problems panel⌘⇧M
Zoom in/out⌘=/⌘-
Reset zoom⌘0
Zen mode⌘KZ
Debug
Toggle breakpointF9
Start / continue debugF5
Stop debug⇧F5
Step overF10
Step intoF11
Step out⇧F11
Show hover⌘K⌘I
Integrated Terminal
Create new terminal⌃⇧`
Copy selection⌘C
Scroll up/down⌘↑/↓
Scroll page up/down⇧PgUp/PgDn
Scroll to top/bottom⌘Home/End