Visual Studio Code Keyboard Shortcuts Cheatsheet

Cursor Movement

  • Cmd-left arrow - move cursor to beginning of line
  • Cmd-right arrow - move cursor to end of line
  • Opt-left arrow - move cursor one word to the left
  • Opt-right arrow - move cursor one word to the right

Selection

  • Shift + any cursor movement - expand selection by that amount
  • Opt-click - place a multi-cursor
  • Cmd-D - Additionally select next instance of current selection.
  • Cmd-Shift-L - Select all instances of current selection.

Moving Selections

  • Cmd-C - Copy selection to clipboard.
  • Cmd-X - Cut selection (copy to clipboard and delete)
  • Cmd-V - Paste clipboard contents at cursor.
  • Opt-up arrow - Move current line above preceding line.
  • Opt-down arrow - Move current line below next line.