Skip to content

Instantly share code, notes, and snippets.

@ecoologic
Last active December 5, 2021 21:39
Show Gist options
  • Save ecoologic/9ff324881345bc2e6841182a680d0173 to your computer and use it in GitHub Desktop.
Save ecoologic/9ff324881345bc2e6841182a680d0173 to your computer and use it in GitHub Desktop.

VS Code

VS Code Shortcuts

  • ^ is crtl .

Basic editing

  • ⌥↓ / ⌥↑ Move line down/up
  • ⇧⌘\ Jump to matching bracket
  • ⌥⌘[ / ⌥⌘] Fold/unfold region
  • ⌘↑ / ⌘↓ Go to beginning/end of file
  • ^pgUp scroll view
  • ^- / ^⇧- back/forth last edit locations

multi-cursor selection

  • ⌥⌘↑ Insert cursor above

Search and replace

  • ⌘D Add selection to next Find match
  • ⌘G / ⇧⌘G Find next/previous
  • ⌘K ⌘D Move last selection to next Find match (skip ⌘D)

Rich languages editing

  • ⌃Space, ⌘I Trigger suggestion
  • ⇧⌥F Format document
  • F12 Go to Definition
  • ⇧F12 Show References
  • F2 Rename Symbol

Navigation

  • ⌘T Show all Symbols
  • ⌃G Go to Line...

Editor management

  • ⌘\ Split editor
  • ⌘K ⇧⌘← / ⌘K ⇧⌘→ Move editor left/right

Display

  • ⌃⌘F Toggle full screen
  • ⇧⌘H Replace in files
  • ⇧⌘V Open Markdown preview

Integrated terminal

  • ⌃` Show integrated terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment