VSCode shortcuts

General

  • f1 or ctrl+shift+P command palette
  • ctrl+P quick open file
  • ctrl+w close window
  • ctrl+, settings
  • ctrl+k, ctrl+s all shortcuts

Editing

  • alt+↑/↓ move line up/down
  • Ctrl+Shift+\ jump to matching bracket
  • Ctrl+Shift+A toggle block comment
  • Ctrl+/ toggle line comment
  • Home / End go to beginning/end of line
  • Ctrl+Home / Ctrl+End go to beginning/end of file
  • ctrl+↑/↓ or ↑/↓ scrolling
  • alt+pgUp/pgDn or pgUp/pgDn page up/down
  • Ctrl+Enter insert line below
  • Ctrl+Shift+Enter insert line above
  • ctrl+shift+K delete line
  • alt+z toggle wrap word
  • ctrl+shift+I format
  • ctrl+U undo last cursor operation
  • ctrl+G go to line
  • ctrl+p go to file
  • ctrl+t show all symbols
  • ctrl+k ctrl+W close all
  • ctrl+` terminal
  • ctrl+f find/search (also in chrome dev tools)
  • f12 go to definition
  • ctrl+shift+O find/search functions/methods (also in chrome dev tools)
  • Alt + Shift + O remove unused imports (Alt = Option on Mac)