Zum Hauptinhalt springen

VSCode Cheatsheet

Keyboard shortcuts

Cmd+Shift+P
Command palette
Cmd+P
Go to file
Cmd+B
Toggle side bar
Cmd+Shift+U
Focus/Toggle output console
Cmd+1
Focus editor pane
Cmd+Shift+E
Focus explorer pane
Cmd+Shift+F
Focus search pane
Cmd+Shift+D
Focus debugging pane
Ctrl+Shift+G
Focus Git pane
Ctrl+Tab /Ctrl+Shift+Tab
Switch between tabs
Cmd+E /Cmd+Shift+E
Switch between tabs (custom)
Cmd+W
Close tab
Shift+Cmd+P
Open project
Cmd+Option+Arrow
Move between tabs
F12
Go to definition
Shift+F12
Show references
Cmd+F12
Show implementations

Editor

Option+ Click
Add another cursor
Option+Shift+ Drag
Drag multi cursor
Option+Command+Arrow
Add cursor above/below
Option+Shift+U
Generate UUID
Cmd+D
Select word
Cmd+Shift+L
Extend cursor to all matches
F2
Rename symbol
Option+Z
Toggle line wrap

Misc

Cmd+Shift+N
Create new file in tree
Cmd+Shift+Option+N
Create new directory in tree
Shift+Cmd+F5
Restart current run target
Cmd+K, Z
Toggle Zen mode
Cmd+Shift+1
Zoom in
Cmd+-
Zoom out

Tricks

Create a scratch file

  1. Cmd+N to create a new file
  2. Paste content
  3. From the command palette, run Change Language Mode and set it to whatever you need
  4. From the command palette, run Format Document

Useful features

  • Toggle Minimap