Table of contents
Open Table of contents
General
Show all commands: > ...
- Win:
Shift+Ctr+P
||Fn+F1
- Mac:
Shift+Cmd+P
||Fn+F1
New window/instance:
- Win:
Shift+Ctr+N
- Mac:
Shift+Cmd+N
Close window/instance:
- Win:
Shift+Ctr+W
- Mac:
Shift+Cmd+W
New untitled file:
- Win:
Ctr+N
- Mac:
Cmd+N
Close file:
- Win:
Cmd+W
- Mac:
Cmd+W
User Settings:
- Win:
Ctr+,
- Mac:
Cmd+,
Keyboard Shortcuts:
- Win:
Ctr+K
&Ctr+S
- Mac:
Cmd+K
&Cmd+S
Line operations
Delete a line
- Win:
Ctr+X
with cursor on the line ||Shift+Ctr+K
- Mac:
Ctr+X
with cursor on the line ||Shift+Cmd+K
Move a line down/up
- Win:
Alt+DownArrow/Alt+UpArrow
- Mac:
Option+DownArrow/Alt+UpArrow
Copy a line down/up
- Win:
Shift+Alt+DownArrow/Shift+Alt+UpArrow
- Mac:
Shift+Option+DownArrow/Shift+Alt+UpArrow
Insert a line below/above
- Win:
Ctr+Enter/Shift+Ctr+Enter
- Mac:
Cmd+Enter/Shift+Cmd+Enter
Indent/outdent a line
- Win:
TAB/Shift+TAB
- Mac:
TAB/Shift+TAB
Moving the cursor
Jump to matching bracket
- Win:
Ctr+Shift+ú
(?) - Mac:
Shift+Cmd+\
||^+Option+Cmd+i
(?)
Go to beginning/end of line
- Win:
Shift+Home/Shift+End
- Mac:
Cmd+LeftArrow/Cmd+RightArrow
||Fn+LeftArrow/Fn+RightArrow
Go to beginning/end of file
- Win:
Ctr+Home/Ctr+End
(?) - Mac:
Cmd+UpArrow/Cmd+DownArrow
Move cursor word by word
- Win:
Ctr+LeftArrow/Ctr+RightArrow
- Mac:
Alt+LeftArrow/Alt+RightArrow
Comments
Toggle line comment
- Win:
Ctr+ü
- Mac:
Cmd+K
thenCmd+C
||Shift_Cmd+6
Toggle block comment
- Win:
Shift+Alt+A
- Mac:
Shift+Option+A
Toggle word wrap
- Win:
Alt+Z
- Mac:
Option+Z
Multi-cursor
Insert cursor above
- Win:
Alt+Ctr+UpArrow
- Mac:
Option+Cmd+UpArrow
Insert cursor below
- Win:
Alt+Ctr+DownArrow
- Mac:
Option+Cmd+DownArrow
Undo last cursor operation
- Win:
Ctr+U
- Mac:
Cmd+U
Insert cursor at end of each line selected
- Win:
Shift+Alt+I
- Mac:
Shift+Option+I
Selection
Select current line
- Win:
Ctr+L
- Mac:
Cmd+L
(?)
Select all occurrences of current selection & place multi-cursor on them
- Win:
Shift+Ctr+L
- Mac:
Shift+Cmd+L
Select all occurrences of current word (where your cursor is) & place multi-cursor on them
- Win:
Ctr+F2
- Mac:
Cmd+Fn+F2
Select until the end of the word
- Win:
Shift+Alt+LeftArrow/RightArrow
- Mac:
Shift+Option+LeftArrow/RightArrow
Select a Column/Box of code with arrow keys
- Win:
Ctr+Shift+Alt+LeftArrow/RightArrow/UpArrow/DownArrow
- Mac:
Cmd+Shift+Option+LeftArrow/RightArrow/UpArrow/DownArrow
Select a Column/Box of code by mouse drag
- Win:
Shift+Alt
& drag the mouse - Mac:
Shift+Option
& drag the mouse
Fold/unfold
Toggle fold
- Win:
Ctr+K
&Ctr+L
- Mac:
Cmd+K
&Cmd+L
Search and replace
Search within the active file
- Win:
Ctr+F
- Mac:
Cmd+F
Search globally
- Win:
Shift+Ctr+F
- Mac:
Shift+Cmd+F
Toggle Match Case
- Win:
Alt+C
- Mac:
Option+Cmd+C
Toggle Match Whole Word
- Win:
Alt+W
- Mac:
Option+Cmd+W
Toggle Use Regular Expression
- Win:
Alt+R
- Mac:
Option+Cmd+R
Find and replace sg in current file
- Win:
Ctr+H
- Mac:
Option+Cmd+F
Replace in files
- Win:
Shift+Ctr+H
- Mac:
Shift+Cmd+H
Find next
- Win:
Ctr+F3
- Mac:
Cmd+G
Find previous
- Win:
Shift+F3
- Mac:
Shift+Cmd+G
Add selection to next Find match
- Win:
Ctr+D
- Mac:
Cmd+D
Move last selection to next Find match
- Win:
Ctr+K
&Ctr+D
(?) - Mac:
Cmd+K
&Cmd+D
(?)
Move between Find results in active file
- Win:
F3
- Mac:
Fn+F3
Select all occurences of Find match
- Win:
Alt+Enter
- Mac:
Option+Enter
Editing
Toggle between overwrite/insert modes
- Win:
Ctr+Shift+P
then type “overwrite” - Mac:
Cmd+Shift+P
then type “overwrite”
Navigation
Go to Line…: ...
- Win:
Ctr+G
- Mac:
Ctr+G
||Cmd+P
then type a:
Quick Open, Go to File: instantly find & open files
- Win:
Ctr+P
- Mac:
Cmd+P
Quick switch between open files/tabs
- Win:
Ctr+TAB
- Mac:
Ctr+TAB
- then keeping
Ctr
down,TAB/Shift+TAB
again to scroll down/up the list - OR:
Ctr+1
/Ctr+2
, etc
- then keeping
Navigate Tab Groups
- to create a split editor by grouping your tab into Tab Groups
- if the editor group you select in the shortcut is higher than the number of groups currently open
- or/then navigate between groups in the split editor
* Win: Ctr+1
/ Ctr+2
/ Ctr+3
etc
- Mac:
Cmd+1
/Cmd+2
/Cmd+3
etc
Go to Symbol…in Editor: @ ...
- Win:
Shift+Ctr+O
- Mac:
Shift+Cmd+O
Go to Symbol … in Workspace: # ...
- Win: highlight symbol, then
Ctr+T
- Mac: highlight symbol, then
Cmd+T
Go to last edit location
- Win:
Ctr+K
&Ctr+Q
- Mac:
Cmd+K
&Cmd+Q
Go to next symbol highlight
- Win:
Fn+F7
- Mac:
Fn+F7
Go to previous symbol highlight
- Win:
Shift+Fn+F7
- Mac:
Shift+Fn+F7
Navigate through errors and warnings
- Win:
F8
(to check) - Mac:
Fn+F8
Editor management
…
File management
New file:
- Win:
Ctr+N
- Mac:
Cmd+N
Open file
- Win:
Ctr+O
- Mac:
Cmd+O
Save file
- Win:
Ctr+S
- Mac:
Cmd+S
Save file as
- Win:
Shift+Ctr+S
- Mac:
Shift+Cmd+S
Save all
- Win:
Ctr+K
&S
- Mac:
Option+Cmd+S
Close file
- Win:
Ctr+W
- Mac:
Cmd+W
Close all files
- Win: ?
- Mac:
Cmd+K
&Cmd+W
…
Display
Toggle Primary Sidebar
- Win:
Ctr+B
- Mac:
Cmd+B
Toggle Secondary Sidebar
- Win:
Alt+Ctr+B
- Mac:
Option+Cmd+B
Show Explorer / Toggle focus
- Win:
Shift+Ctr+E
- Mac:
Shift+Cmd+E
||Cmd+K
&Cmd+E
Show Source Control
- Win:
Shift+Ctr+G
- Mac:
Cmd+K
&Cmd+V
Show Debug
- Win:
Shift+Ctr+D
- Mac:
Shift+Cmd+D
||Cmd+K
&Cmd+D
Show Extensions
- Win:
Shift+Ctr+X
- Mac:
Shift+Cmd+X
Open Markdown previews
- Win:
Shift+Ctr+V
- Mac:
Shift+Cmd+V
Toggle Problems
- Win:
Shift+Ctr+M
- Mac:
Shift+Cmd+M
Toggle Debug Console
- Win:
Shift+Ctr+Y
- Mac:
Shift+Cmd+Y
Toggle Output
- Win:
Shift+Ctr+U
- Mac:
Shift+Cmd+U
Zoom in
- Win:
Ctr+ó
- Mac:
Shift+Cmd+=
Zoom out
- Win:
Ctr+-
- Mac:
Shift+Cmd+-
Show hover
- Win:
Ctr+K
&Ctr+I
(?) - Mac:
Cmd+K
&Cmd+I
Debug
Toggle breakpoint
- Win:
Fn+F9
- Mac:
Fn+F9
Start/Continue
- Win:
Fn+F5
- Mac:
Fn+F5
Step into
- Win:
Fn+F11
(?) - Mac:
Fn+F11
(?)
Step out
- Win:
Shift+Fn+F11
(?) - Mac:
Shift+Fn+F11
(?)
Step over
- Win:
Fn+F10
(?) - Mac:
Fn+F10
(?)
Stop
- Win:
Shift+Fn+F5
(?) - Mac:
Shift+Fn+F5
(?)
Integrated terminal
Toggle Terminal panel
- Win:
Ctr+J
- Mac:
Cmd+J
Split Terminal
- Win:
Ctr+Shift+5
(?) - Mac:
Cmd+\
(?)
Renaming
Rename symbol
- Win: highlight symbol, then
Fn+F2
- Mac: highlight symbol, then
Fn+F2
Format code
File formatting
- Win:
Ctr+Shift+F
(?) - Mac:
Option+Shift+F
Selection formatting
- Win:
Ctr+K
&Ctr+F
- Mac:
Cmd+K
&Cmd+F
Better coding
Go to definition
- Win:
F12
- Mac:
Fn+F12
Peek definition (see definition without moving to a different file/line)
- Win:
Alt+F12
- Mac:
Option+Fn+F12
Show a function’s signature
- Win:
Ctr+Shift+spacebar
- Mac:
Cmd+Shift+spacebar
Toggle code suggestions (VS Code, Copilot, etc)
- Win:
Ctr+I
- Mac:
Cmd+I