Visual Studio Code Shortcuts
3 min readJan 7, 2020
As computer programmers, we spend countless number of hours typing away at our keyboards (some of us clickity-clack away).
And carpal tunnel is a thing.
Everyone should try their best to delay eventual hand hurt and use keyboard shortcuts for commonly used actions. Here are some VS Code shortcuts that I frequently use:
⌘D (command + d) — Add selection to next Find match
⌘U (command + u) — Soft undo
⌘P (command + p) — Quick Open, Go to File
⌥↓ / ⌥↑ (option↓ / ↑) — Move line down/up
⇧⌥↓ /⇧ ⌥↑ (shift + option↓ / ↑) — Copy line down
⇧⌘\ (shift + command + \) — Jump to matching bracket
⌘/ (command + /) — Toggle line comment
⇧⌥A (shift + option + a) — Toggle block comment
⌥ + click (option + click)
⌥⌘↓ / ⌥⌘↑ (option + command + ↓ / ↑) —
⇧⌘ + drag mouse (shift + option + drag mouse) — Column selection
Source: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf