VSCode Shortcuts Cheat Sheet

Aus MattWiki

Application Wide Shortcuts

Shortcut Action
CTRL + SHIFT + P Commant Palette
CTRL + , Open settings
CTRL + Zoom in
CTRL - Zoom out

Editor

Window Control

Shortcut Action
CTRL + 1 Go to first editor panel
CTRL + 2 / 3 Go to second / third editor panel, create one if not present
CTRL + ^ Split editor panel
CTRL + W Close file
CTRL + SHIFT + T Reopen last closed file
CTRL + TAB Next tab
CTRL + B Toggle sidebar visibility

Navigation

Shortcut Action
ALT + ↑/↓ Move line up/down
SHIFT + ALT + ↑/↓ Duplicate line up/down
CTRL + SHIFT + K Delete line
CTRL + Z Undo

Multi Cursor Editing

Shortcut Action
ALT + Click Add cursor
CTRL + D Multi-select word
CTRL + SHIFT + ALT + ↑/↓ Add second cursor in the line above or below

Coding

Shortcut Action
CTRL + # Comment / Uncomment line
SHIFT + ALT + F Format document
CTRL + SPACE Show suggestions

File Management

Shortcut Action
CTRL + # Comment / Uncomment line
SHIFT + ALT + F Format document
CTRL + SPACE Show suggestions

Terminal

Shortcut Action
CTRL + ö / CTRL + ` Toggle terminal panel / Switch to terminal panel, if in editor
CTRL + SHIFT + ö Create second terminal tab
CTRL + L Clear Terminal