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):

  1. Move a line up or down: ⌥↓ / ⌥↑
  2. Cut line (empty selection): ⌘X
  3. Copy line (empty selection): ⌘C
  4. Delete line: ⇧⌘K
  5. Insert line below/above: ⌘Enter/⇧⌘Enter
  6. Jump to matching bracket: ⇧⌘\
  7. Toggle a block comment (for example docstring): ⇧⌥A
  8. Toggle word wrap: ⌥Z.
  9. Select current line: ⌘L.
  10. Select all instances of current selection: ⌥⇧L.
  11. Peek definition: ⌘⇧D.
  12. Peek references: ⌘⇧⌥D.
  13. Trim trailing whitespace: ⌘K ⌘X.
  14. Close folder: ⌘K F.
  15. Split editor (for same file): ⌘\
  16. Copy path of active file: ⌘K P
  17. Focus breadcrumbs: ⇧⌘.
  18. Focus last breadcrumbs element: ⇧⌘;
  19. Fold/unfold region: ⌥⌘[

    uuid: 202005022012 VSCode shortcuts date: May 2, 2020 tags: #programming #tricks

Date
February 22, 2023