Keyboard Shortcuts
434+ shortcuts — VS Code, Chrome DevTools, macOS, Windows/Linux, Bash/Zsh, tmux, Git, Vim
General
- ⌘+Shift+P
Show Command Palette
- ⌘+P
Quick Open / Go to File
- ⌘+Shift+N
New window / instance
- ⌘+W
Close window / instance
- ⌘+,
User Settings
- ⌘+K+⌘+S
Keyboard Shortcuts editor
- ⌘+Shift+X
Open Extensions view
- ⌘+B
Toggle Sidebar visibility
- ⌘+Shift+E
Show Explorer / Focus on editor
- ⌘+Shift+F
Show Search
- ⌘+Shift+G
Show Source Control
- ⌘+Shift+D
Show Run and Debug
- ⌘+`
Toggle integrated terminal
- ⌘+Shift+`
Create new terminal
Editing
- ⌘+X
Cut line (empty selection)
- ⌘+C
Copy line (empty selection)
- ⌥+↑
Move line up
- ⌥+↓
Move line down
- ⌥+Shift+↑
Copy line up
- ⌥+Shift+↓
Copy line down
- ⌘+Shift+K
Delete line
- ⌘+Enter
Insert line below
- ⌘+Shift+Enter
Insert line above
- ⌘+Shift+\
Jump to matching bracket
- ⌘+]
Indent line
- ⌘+[
Outdent line
- Home
Go to beginning of line
- End
Go to end of line
- ⌘+↑
Go to beginning of file
- ⌘+↓
Go to end of file
- ⌥+Z
Toggle word wrap
- ⌘+K+⌘+F
Format selection
- ⌥+Shift+F
Format document
Multi-cursor & Selection
- ⌥+Click
Insert cursor
- ⌘+⌥+↑
Insert cursor above
- ⌘+⌥+↓
Insert cursor below
- ⌘+U
Undo last cursor operation
- ⌥+Shift+I
Insert cursor at end of each selected line
- ⌘+L
Select current line
- ⌘+Shift+L
Select all occurrences of current selection
- ⌘+F2
Select all occurrences of current word
- ⌘+D
Add selection to next find match
- ⌘+K+⌘+D
Move last selection to next find match
Navigation
- ⌃+G
Go to Line…
- ⌘+P
Go to File…
- ⌘+Shift+O
Go to Symbol in Editor
- ⌘+T
Go to Symbol in Workspace
- F8
Go to next error or warning
- Shift+F8
Go to previous error or warning
- ⌘+Shift+Tab
Navigate editor group history
- ⌃+-
Go back
- ⌃+Shift+-
Go forward
- F12
Go to Definition
- ⌥+F12
Peek Definition
- ⌘+K+F12
Open Definition to the side
- ⌘+.
Quick Fix
- Shift+F12
Show References
- F2
Rename Symbol
Search & Replace
- ⌘+F
Find
- ⌘+H
Replace
- ⌘+Shift+H
Replace in Files
- ⌘+Shift+F
Find in Files
- F3
Find next
- Shift+F3
Find previous
- ⌥+Enter
Select all occurrences of Find match
- ⌘+K+⌘+R
Open keyboard shortcuts reference
Editor Management
- ⌘+\
Split editor
- ⌘+1
Focus first editor group
- ⌘+2
Focus second editor group
- ⌘+3
Focus third editor group
- ⌘+K+⌘+←
Focus previous editor group
- ⌘+K+⌘+→
Focus next editor group
- ⌘+K+Shift+←
Move editor into previous group
- ⌘+K+Shift+→
Move editor into next group