VSCode Shortcuts
https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf
Some of the particularly interesting ones (a couple of these are customized for my personal setup, unfortunately):
- Move a line up or down:
⌥↓ / ⌥↑
- Cut line (empty selection):
⌘X
- Copy line (empty selection):
⌘C
- Delete line:
⇧⌘K
- Insert line below/above:
⌘Enter/⇧⌘Enter
- Jump to matching bracket:
⇧⌘\
- Toggle a block comment (for example docstring):
⇧⌥A
- Toggle word wrap:
⌥Z
. - Select current line:
⌘L
. - Select all instances of current selection:
⌥⇧L
. - Peek definition:
⌘⇧D
. - Peek references:
⌘⇧⌥D
. - Trim trailing whitespace:
⌘K ⌘X
. - Close folder:
⌘K F
. - Split editor (for same file):
⌘\
- Copy path of active file:
⌘K P
- Focus breadcrumbs:
⇧⌘.
- Focus last breadcrumbs element:
⇧⌘;
Fold/unfold region:
uuid: 202005022012 VSCode shortcuts date: May 2, 2020 tags: #programming #tricks⌥⌘[