Keyboard Shortcuts For Mac - Visual Studio Code

ADVERTISEMENT

Search and replace
⌘W
Close
⌘K ⌘W
Close All
⌘F
Find
Reopen closed editor
⇧⌘T
Keyboard shortcuts for Mac
⌥⌘F
Replace
⌘K Enter
Keep Open
⌘G / ⇧⌘G
Find next/previous
⌃Tab / ⌃⇧Tab
Open next / previous
⌥Enter
Select all occurrences of Find match
⌘K P
Copy path of active file
General
⌘D
Add selection to next Find match
⌘K R
Reveal active file in Explorer
⌘K ⌘D
Move last selection to next Find match
⌘K O
Show active file in new window/instance
Show Command Palette
⇧⌘P, F1
⌘P
Quick Open
Rich languages editing
Display
⇧⌘N
New window/instance
⌘W
Close window/instance
⌃Space
Trigger suggestion
⌃⌘F
Toggle full screen
⇧⌘Space
Trigger parameter hints
⌥⌘1
Toggle editor layout
Basic editing
Tab
Emmet expand abbreviation
⌘= / ⇧⌘-
Zoom in/out
⇧⌥F
Format document
⌘B
Toggle Sidebar visibility
⌘X
Cut line (empty selection)
⌘K ⌘F
Format selection
⇧⌘E
Show Explorer / Toggle focus
⌘C
Copy line (empty selection)
F12
Go to Definition
⇧⌘F
Show Search
⌥↓ / ⌥↑
Move line down/up
⌥F12
Peek Definition
Show Git
⌃⇧G
⇧⌥↓ / ⇧⌥↑
Copy line down/up
⌘K F12
Open Definition to the side
⇧⌘D
Show Debug
⇧⌘K
Delete line
⌘.
Quick Fix
⇧⌘X
Show Extensions
⌘Enter / ⇧⌘Enter
Insert line below/above
⇧F12
Show References
⇧⌘H
Replace in files
⇧⌘\
Jump to matching bracket
F2
Rename Symbol
⇧⌘J
Toggle Search details
⌘] / ⌘[
Indent/outdent line
⇧⌘. / ⇧⌘,
Replace with next/previous value
⇧⌘C
Open new command prompt/terminal
Go to beginning/end of line
Home / End
⌘K ⌘X
Trim trailing whitespace
⇧⌘U
Show Output panel
⌘↑ / ⌘↓
Go to beginning/end of file
Change file language
⌘K M
⇧⌘V
Toggle Markdown preview
⌃PgUp
Scroll line up
⌘K V
Open Markdown preview to the side
⌃PgDown
Scroll line down
Navigation
⌘PgUp /⌘PgDown
Scroll page up/down
Debug
⇧⌘[ / ⇧⌘]
Fold/unfold region
⌘T
Show all Symbols
⌘K ⌘[ / ⌘K ⌘]
Fold/unfold all subregions
⌃G
Go to Line...
F9
Toggle breakpoint
⌘K ⌘0 / ⌘K ⌘J
Fold/unfold all regions
⌘P
Go to File...
F5
Start/Continue
⌘K ⌘C
Add line comment
⇧⌘O
Go to Symbol...
F11 / ⇧F11
Step into/ out
⌘K ⌘U
Remove line comment
⇧⌘M
Show Problems panel
Step over
F10
⌘/
Toggle line comment
F8 / ⇧F8
Go to next/previous error or warning
⇧F5
Stop
⇧⌥A
Toggle block comment
⌃⇧Tab
Navigate editor group history
⌘K ⌘I
Show hover
⌥Z
Toggle word wrap
⌃- / ⌃⇧-
Go back/forward
⌃⇧M
Toggle Tab moves focus
Integrated terminal
Multi-cursor and selection
Editor management
⌃`
Show integrated terminal
Alt+Click
Insert cursor
⌃⇧`
Create new terminal
⌥⌘↑
Insert cursor above
⌘W
Close editor
unassigned
Copy selection
⌥⌘↓
Insert cursor below
⌘K F
Close folder
unassigned
Paste into active terminal
⌘U
Undo last cursor operation
⌘\
Split editor
⌘↑
Scroll up
⇧⌥I
Insert cursor at end of each line selected
st
nd
rd
⌘1 / ⌘2 / ⌘3
Focus into 1
, 2
, 3
editor group
⌘↓
Scroll down
⌘I
Select current line
⌘K ⌘← / ⌘K ⌘→
Focus into previous/next editor group
⇧⌘L
Select all occurrences of current selection
PgUp
Scroll page up
⌘K ⇧⌘← / ⌘K ⇧⌘→ Move editor left/right
⌘F2
Select all occurrences of current word
PgDown
Scroll page down
⌃⇧⌘→
Expand selection
⌘K ← / ⌘K →
Move active editor group
⌘Home
Scroll to top
⌃⇧⌘←
Shrink selection
Scroll to bottom
⌘End
Shift+Alt + drag
Column (box) selection
File management
mouse
⇧⌥⌘↑
Column (box) selection up
⌘N
New File
⇧⌥⌘↓
Column (box) selection down
⌘O
Open File...
⇧⌥⌘←
Column (box) selection left
⌘S
Save
⇧⌥⌘→
Column (box) selection right
Save As...
⇧⌘S
Other operating systems’ keyboard shortcuts and additional
⇧⌥⌘PgUp
Column (box) selection page up
⌥⌘S
Save All
⇧⌥⌘PgDown
Column (box) selection page down
unassigned shortcuts available at aka.ms/vscodekeybindings

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go