Loading gists…
VS Code Shortcuts
| 1 | VS Code Shortcuts (Windows) |
| 2 | |
| 3 | +-------------------------------+-----------------------------------+ |
| 4 | | Action | Shortcut (Windows) | |
| 5 | +-------------------------------+-----------------------------------+ |
| 6 | | Copy line | Ctrl + C | |
| 7 | | Cut line | Ctrl + X | |
| 8 | | Duplicate line/selection | Shift + Alt + Down / Shift + Alt + Up | |
| 9 | | Move line up/down | Alt + ↑ / ↓ | |
| 10 | | Delete line | Ctrl + Shift + K | |
| 11 | | Add cursor next occurrence | Ctrl + D | |
| 12 | | Select all occurrences | Ctrl + Shift + L | |
| 13 | | Add cursor above/below | Ctrl + Alt + ↑ / ↓ | |
| 14 | | Column (box) selection | Shift + Alt + Drag mouse OR Ctrl + Shift + Alt + Arrow keys | |
| 15 | | Insert line below | Ctrl + Enter | |
| 16 | | Insert line above | Ctrl + Shift + Enter | |
| 17 | | Jump to matching bracket | Ctrl + Shift + \ | |
| 18 | | Indent line | Ctrl + ] | |
| 19 | | Outdent line | Ctrl + [ | |
| 20 | | Go to file quickly | Ctrl + P | |
| 21 | | Command Palette (all commands)| Ctrl + Shift + P | |
| 22 | +-------------------------------+-----------------------------------+ |
| 23 | |
| 24 | Pro Tips: |
| 25 | - Use multi-cursor editing (Ctrl + D or Ctrl + Shift + L) when refactoring repeated variable names. |
| 26 | - Combine duplicate line (Shift + Alt + Down) with move line (Alt + ↓) to quickly reorganize code. |
| 27 | - For box selection, hold Shift + Alt and drag with the mouse — great for editing columns of text. |
| 28 |