VSCode Cheat Sheet and Knowledgebase
Aus MattWiki
Application Wide Shortcuts
Shortcut | Action |
---|---|
CTRL + | Zoom in |
CTRL - | Zoom out |
CTRL + , | Open settings |
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 |
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 element |
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 |