VIsual Studio Code Keyboard Shortcuts for Windows
General
Show Command Palette
- Ctrl
- +
- Shift
- +
- P
Quick Open, Go to File…
- Ctrl
- +
- P
New window/instance
- Ctrl
- +
- Shift
- +
- N
Close window/instance
- Ctrl
- +
- Shift
- +
- W
User Settings
- Ctrl
- +
- ,
Keyboard Shortcuts
- Ctrl
- +
- K
- +
- Ctrl
- +
- S
Basic Editing
Cut line (empty selection)
- Ctrl
- +
- X
Copy line (empty selection)
- Ctrl
- +
- C
Move line up/down
- Alt
- +
- Up/Down
Copy line up/down
- Shift
- +
- Alt
- +
- Up/Down
Delete line
- Ctrl
- +
- Shift
- +
- K
Insert line below
- Ctrl
- +
- Enter
Insert line above
- Ctrl
- +
- Shift
- +
- Enter
Jump to matching bracket
- Ctrl
- +
- Shift
- +
- \
Indent/outdent line
- Ctrl
- +
- ]/[
Go to beginning/end of line
- Home/End
Go to beginning of file
- Ctrl
- +
- Home
Go to end of file
- Ctrl
- +
- End
Scroll line up/down
- Ctrl
- +
- Up/Down
Scroll page up/down
- Alt
- +
- PgUp/PgDown
Fold (collapse) region
- Ctrl
- +
- Shift
- +
- [
Unfold (uncollapse) region
- Ctrl
- +
- Shift
- +
- ]
Fold (collapse) all subregions
- Ctrl
- +
- K
- +
- Ctrl
- +
- [
Unfold (uncollapse) all subregions
- Ctrl
- +
- K
- +
- Ctrl
- +
- ]
Fold (collapse) all regions
- Ctrl
- +
- K
- +
- Ctrl
- +
- 0
Unfold (uncollapse) all regions
- Ctrl
- +
- K
- +
- Ctrl
- +
- J
Add line comment
- Ctrl
- +
- K
- +
- Ctrl
- +
- C
Remove line comment
- Ctrl
- +
- K
- +
- Ctrl
- +
- U
Toggle line comment
- Ctrl
- +
- /
Toggle block comment
- Shift
- +
- Alt
- +
- A
Toggle word wrap
- Alt
- +
- Z
Navigation
Show all Symbols
- Ctrl
- +
- T
Go to Line…
- Ctrl
- +
- G
Go to File…
- Ctrl
- +
- P
Go to Symbol…
- Ctrl
- +
- Shift
- +
- O
Show Problems panel
- Ctrl
- +
- Shift
- +
- M
Go to next error or warning
- F8
Go to previous error or warning
- Shift
- +
- F8
Navigate editor group history
- Ctrl
- +
- Shift
- +
- Tab
Go back/forward
- Alt
- +
- Left/Right
Toggle Tab moves focus
- Ctrl
- +
- M
Search and replace
Find
- Ctrl
- +
- F
Replace
- Ctrl
- +
- H
Find next
- F3
Find previous
- Shift
- +
- F3
Select all occurences of Find match
- Alt
- +
- Enter
Add selection to next Find match
- Ctrl
- +
- D
Move last selection to next Find match
- Ctrl
- +
- K
- +
- Ctrl
- +
- D
Toggle case-sensitive/regex/whole word
- Alt
- +
- C/R/W
Multi-cursor and selection
Insert cursor
- Alt
- +
- Click
Insert cursor above/below
- Ctrl
- +
- Alt
- +
- Up/Down
Undo last cursor operation
- Ctrl
- +
- U
Insert cursor at end of each line selected
- Shift
- +
- Alt
- +
- I
Select current line
- Ctrl
- +
- I
Select all occurrences of current selection
- Ctrl
- +
- Shift
- +
- L
Select all occurrences of current word
- Ctrl
- +
- F2
Expand selection
- Shift
- +
- Alt
- +
- Right
Shrink selection
- Shift
- +
- Alt
- +
- Left
Column (box) selection
- Shift
- +
- Alt
- +
- (drag mouse)
Column (box) selection
- Ctrl
- +
- Shift
- +
- Alt
- +
- (arrow key)
Column (box) selection page up/down
- Ctrl
- +
- Shift
- +
- Alt
- +
- PgUp/PgDown
Rich languages editing
Trigger suggestion
- Ctrl
- +
- Space
Trigger parameter hints
- Ctrl
- +
- Shift
- +
- Space
Format document
- Shift
- +
- Alt
- +
- F
Format selection
- Ctrl
- +
- K
- +
- Ctrl
- +
- F
Go to Definition
- F12
Peek Definition
- Alt
- +
- F12
Open Definition to the side
- Ctrl
- +
- K
- +
- F12
Quick Fix
- Ctrl
- +
- .
Show References
- Shift
- +
- F12
Rename Symbol
- F2
Trim trailing whitespace
- Ctrl
- +
- K
- +
- Ctrl
- +
- X
Change file language
- Ctrl
- +
- K
- +
- M
Editor management
Close editor
- Ctrl
- +
- F4
Close editor
- Ctrl
- +
- W
Close folder
- Ctrl
- +
- K
- +
- F
Split editor
- Ctrl
- +
- \
Focus into 1st, 2nd, or 3rd editor group
- Ctrl
- +
- 1/2/3
Focus into previous/next editor group
- Ctrl
- +
- K
- +
- Ctrl
- +
- Left/Right
Move editor left/right
- Ctrl
- +
- Shift
- +
- PgUp/PgDown
Move active editor group
- Ctrl
- +
- K
- +
- Left/Right
File management
New File
- Ctrl
- +
- N
Open File…
- Ctrl
- +
- O
Save
- Ctrl
- +
- S
Save As…
- Ctrl
- +
- Shift
- +
- S
Save All
- Ctrl
- +
- K
- +
- S
Close
- Ctrl
- +
- F4
Close All
- Ctrl
- +
- K
- +
- Ctrl
- +
- W
Reopen closed editor
- Ctrl
- +
- Shift
- +
- T
Keep preview mode editor open
- Ctrl
- +
- K
- +
- Enter
Open next
- Ctrl
- +
- Tab
Open previous
- Ctrl
- +
- Shift
- +
- Tab
Copy path of active file
- Ctrl
- +
- K
- +
- P
Reveal active file in Explorer
- Ctrl
- +
- K
- +
- R
Show active file in new window/instance
- Ctrl
- +
- K
- +
- O
Display
Toggle full screen
- F11
Toggle editor layout (horizontal/vertical)
- Shift
- +
- Alt
- +
- 0
Zoom in/out
- Ctrl
- +
- =/-
Toggle Sidebar visibility
- Ctrl
- +
- B
Show Explorer/Toggle focus
- Ctrl
- +
- Shift
- +
- E
Show Search
- Ctrl
- +
- Shift
- +
- F
Show Source Control
- Ctrl
- +
- Shift
- +
- G
Show Debug
- Ctrl
- +
- Shift
- +
- D
Show Extensions
- Ctrl
- +
- Shift
- +
- X
Replace in files
- Ctrl
- +
- Shift
- +
- H
Toggle Search details
- Ctrl
- +
- Shift
- +
- J
Show Output panel
- Ctrl
- +
- Shift
- +
- U
Open Markdown preview
- Ctrl
- +
- Shift
- +
- V
Open Markdown preview to the side
- Ctrl
- +
- K
- +
- V
Zen Mode (Esc Esc to exit)
- Ctrl
- +
- K
- +
- Z
Debug
Toggle breakpoint
- F9
Start/Continue
- F5
Stop
- Shift
- +
- F5
Step into
- F11
Step out
- Shift
- +
- F11
Step over
- F10
Show hover
- Ctrl
- +
- K
- +
- Ctrl
- +
- I
Integrated terminal
Show integrated terminal
- Ctrl
- +
- `
Create new terminal
- Ctrl
- +
- Shift
- +
- `
Copy selection
- Ctrl
- +
- C
Paste into active terminal
- Ctrl
- +
- V
Scroll up/down
- Ctrl
- +
- Up/Down
Scroll page up/down
- Shift
- +
- PgUp/PgDown
Scroll to top/bottom
- Ctrl
- +
- Home/End
VIsual Studio Code Keyboard Shortcuts for Mac
General
Show Command Palette
- Cmd
- +
- Shift
- +
- P
Quick Open, Go to File…
- Cmd
- +
- P
New window/instance
- Cmd
- +
- Shift
- +
- N
Close window/instance
- Cmd
- +
- Shift
- +
- W
User Settings
- Cmd
- +
- ,
Keyboard Shortcuts
- Cmd
- +
- K
- +
- Cmd
- +
- S
Basic Editing
Cut line (empty selection)
- Cmd
- +
- X
Copy line (empty selection)
- Cmd
- +
- C
Move line up/down
- Alt
- +
- Up/Down
Copy line up/down
- Shift
- +
- Alt
- +
- Up/Down
Delete line
- Cmd
- +
- Shift
- +
- K
Insert line below
- Cmd
- +
- Enter
Insert line above
- Cmd
- +
- Shift
- +
- Enter
Jump to matching bracket
- Cmd
- +
- Shift
- +
- \
Indent/outdent line
- Cmd
- +
- ]/[
Go to beginning/end of line
- Home/End
Go to beginning of file
- Cmd
- +
- Home
Go to end of file
- Cmd
- +
- End
Scroll line up/down
- Cmd
- +
- Up/Down
Scroll page up/down
- Alt
- +
- PgUp/PgDown
Fold (collapse) region
- Cmd
- +
- Shift
- +
- [
Unfold (uncollapse) region
- Cmd
- +
- Shift
- +
- ]
Fold (collapse) all subregions
- Cmd
- +
- K
- +
- Cmd
- +
- [
Unfold (uncollapse) all subregions
- Cmd
- +
- K
- +
- Cmd
- +
- ]
Fold (collapse) all regions
- Cmd
- +
- K
- +
- Cmd
- +
- 0
Unfold (uncollapse) all regions
- Cmd
- +
- K
- +
- Cmd
- +
- J
Add line comment
- Cmd
- +
- K
- +
- Cmd
- +
- C
Remove line comment
- Cmd
- +
- K
- +
- Cmd
- +
- U
Toggle line comment
- Cmd
- +
- /
Toggle block comment
- Shift
- +
- Alt
- +
- A
Toggle word wrap
- Alt
- +
- Z
Navigation
Show all Symbols
- Cmd
- +
- T
Go to Line…
- Cmd
- +
- G
Go to File…
- Cmd
- +
- P
Go to Symbol…
- Cmd
- +
- Shift
- +
- O
Show Problems panel
- Cmd
- +
- Shift
- +
- M
Go to next error or warning
- F8
Go to previous error or warning
- Shift
- +
- F8
Navigate editor group history
- Cmd
- +
- Shift
- +
- Tab
Go back/forward
- Alt
- +
- Left/Right
Toggle Tab moves focus
- Cmd
- +
- M
Search and replace
Find
- Cmd
- +
- F
Replace
- Cmd
- +
- H
Find next
- F3
Find previous
- Shift
- +
- F3
Select all occurences of Find match
- Alt
- +
- Enter
Add selection to next Find match
- Cmd
- +
- D
Move last selection to next Find match
- Cmd
- +
- K
- +
- Cmd
- +
- D
Toggle case-sensitive/regex/whole word
- Alt
- +
- C/R/W
Multi-cursor and selection
Insert cursor
- Alt
- +
- Click
Insert cursor above/below
- Cmd
- +
- Alt
- +
- Up/Down
Undo last cursor operation
- Cmd
- +
- U
Insert cursor at end of each line selected
- Shift
- +
- Alt
- +
- I
Select current line
- Cmd
- +
- I
Select all occurrences of current selection
- Cmd
- +
- Shift
- +
- L
Select all occurrences of current word
- Cmd
- +
- F2
Expand selection
- Shift
- +
- Alt
- +
- Right
Shrink selection
- Shift
- +
- Alt
- +
- Left
Column (box) selection
- Shift
- +
- Alt
- +
- (drag mouse)
Column (box) selection
- Cmd
- +
- Shift
- +
- Alt
- +
- (arrow key)
Column (box) selection page up/down
- Cmd
- +
- Shift
- +
- Alt
- +
- PgUp/PgDown
Rich languages editing
Trigger suggestion
- Cmd
- +
- Space
Trigger parameter hints
- Cmd
- +
- Shift
- +
- Space
Format document
- Shift
- +
- Alt
- +
- F
Format selection
- Cmd
- +
- K
- +
- Cmd
- +
- F
Go to Definition
- F12
Peek Definition
- Alt
- +
- F12
Open Definition to the side
- Cmd
- +
- K
- +
- F12
Quick Fix
- Cmd
- +
- .
Show References
- Shift
- +
- F12
Rename Symbol
- F2
Trim trailing whitespace
- Cmd
- +
- K
- +
- Cmd
- +
- X
Change file language
- Cmd
- +
- K
- +
- M
Editor management
Close editor
- Cmd
- +
- F4
Close editor
- Cmd
- +
- W
Close folder
- Cmd
- +
- K
- +
- F
Split editor
- Cmd
- +
- \
Focus into 1st, 2nd, or 3rd editor group
- Cmd
- +
- 1/2/3
Focus into previous/next editor group
- Cmd
- +
- K
- +
- Cmd
- +
- Left/Right
Move editor left/right
- Cmd
- +
- Shift
- +
- PgUp/PgDown
Move active editor group
- Cmd
- +
- K
- +
- Left/Right
File management
New File
- Cmd
- +
- N
Open File…
- Cmd
- +
- O
Save
- Cmd
- +
- S
Save As…
- Cmd
- +
- Shift
- +
- S
Save All
- Cmd
- +
- K
- +
- S
Close
- Cmd
- +
- F4
Close All
- Cmd
- +
- K
- +
- Cmd
- +
- W
Reopen closed editor
- Cmd
- +
- Shift
- +
- T
Keep preview mode editor open
- Cmd
- +
- K
- +
- Enter
Open next
- Cmd
- +
- Tab
Open previous
- Cmd
- +
- Shift
- +
- Tab
Copy path of active file
- Cmd
- +
- K
- +
- P
Reveal active file in Explorer
- Cmd
- +
- K
- +
- R
Show active file in new window/instance
- Cmd
- +
- K
- +
- O
Display
Toggle full screen
- F11
Toggle editor layout (horizontal/vertical)
- Shift
- +
- Alt
- +
- 0
Zoom in/out
- Cmd
- +
- =/-
Toggle Sidebar visibility
- Cmd
- +
- B
Show Explorer/Toggle focus
- Cmd
- +
- Shift
- +
- E
Show Search
- Cmd
- +
- Shift
- +
- F
Show Source Control
- Cmd
- +
- Shift
- +
- G
Show Debug
- Cmd
- +
- Shift
- +
- D
Show Extensions
- Cmd
- +
- Shift
- +
- X
Replace in files
- Cmd
- +
- Shift
- +
- H
Toggle Search details
- Cmd
- +
- Shift
- +
- J
Show Output panel
- Cmd
- +
- Shift
- +
- U
Open Markdown preview
- Cmd
- +
- Shift
- +
- V
Open Markdown preview to the side
- Cmd
- +
- K
- +
- V
Zen Mode (Esc Esc to exit)
- Cmd
- +
- K
- +
- Z
Debug
Toggle breakpoint
- F9
Start/Continue
- F5
Stop
- Shift
- +
- F5
Step into
- F11
Step out
- Shift
- +
- F11
Step over
- F10
Show hover
- Cmd
- +
- K
- +
- Cmd
- +
- I
Integrated terminal
Show integrated terminal
- Cmd
- +
- `
Create new terminal
- Cmd
- +
- Shift
- +
- `
Copy selection
- Cmd
- +
- C
Paste into active terminal
- Cmd
- +
- V
Scroll up/down
- Cmd
- +
- Up/Down
Scroll page up/down
- Shift
- +
- PgUp/PgDown
Scroll to top/bottom
- Cmd
- +
- Home/End