| Selection and editing magic | |
|---|---|
| Shift+Alt+R | Select in file Explorer |
| Ctrl+/ | Comments or uncomments lines |
| Ctrl+D | Selects the next occurrence of the current word (useful for multi-cursor editing) |
| Ctrl+Shift+L | Selects all occurrences of the current selection at once (creates multiple cursors instantly) |
| Ctrl+L | Selects the entire current line |
| Ctrl+X | Cuts the entire line (when nothing is selected) |
| Ctrl+C | Copies the entire line (when nothing is selected) |
| Ctrl+Shift+K | Deletes the entire line |
| Alt+Up/Down | Moves the current line up or down |
| Shift+Alt+Up/Down | Duplicates the line above or below |
| Ctrl+Shift+\ | Jumps to the matching bracket (brilliant for nested code) |
| Ctrl+] and Ctrl+[ | Indent or outdent lines |
| Ctrl+Enter | Inserts a new line below the current line (even if your cursor is in the middle) |
| Ctrl+Shift+Enter | Inserts a new line above |
| Smart navigation | |
|---|---|
| Ctrl+Tab | Cycles through recently opened files (hold Ctrl and keep tapping Tab) |
| Alt+Left/Right | Navigates backwards/forwards through your cursor history (like browser back/forward) |
| Ctrl+Home/End | Jump to the start or end of the entire file |
| View and layout | |
|---|---|
| Ctrl+\ | Splits the editor into side-by-side views |
| Ctrl+1/2/3 | Focuses the first, second or third editor group |
| Ctrl+Shift+V | Opens Markdown preview |
| Ctrl+K Ctrl+S | Opens keyboard shortcuts (press Ctrl+K, release, then press Ctrl+S) |
| Code folding | |
|---|---|
| Ctrl+Shift+[ | Folds the current code block |
| Ctrl+Shift+] | Unfolds it |
| Ctrl+K Ctrl+0 | Folds all regions in the file (great for seeing structure) |
| Ctrl+K Ctrl+J | Unfolds everything |
| Zen mode and focus | |
|---|---|
| Ctrl+K Z | Toggles Zen mode (distraction-free fullscreen editing) |
| F11 | Toggles fullscreen |