logo

vscode Cheatsheet

Start VS Code from commandline: $ code .

  • Cmd+B: open / close left panel.

Command Pallete

Cmd + P or Ctrl + P: Open command pallete

  • >: commands
  • @ (or Cmd + Shift + .): scroll to symbol
  • # global symbol search
  • : (or Control + G): go to line

Editor

  • Shift + left/right arrow: select text
  • option + left/right arrow: got to previous/next word
  • Cmd + D: select the word. Press multiple times to select multiple same word.
  • Cmd + L: select the line
  • option/Alt + click: set multiple cursors
  • option/Alt + up/down arrow: move the line up or down
  • option/ALt + Shift + up/down arrow: copy the line up or down
  • Cmd + /: toggle comment