Skip to content

Instantly share code, notes, and snippets.

@mahdavipanah
Last active January 26, 2022 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahdavipanah/3449526e8703a8e944d1caae17537c9a to your computer and use it in GitHub Desktop.
Save mahdavipanah/3449526e8703a8e944d1caae17537c9a to your computer and use it in GitHub Desktop.

Vistual Studio Code's Useful Keyboard tips

See keybindings for editor.action.* to find more useful stuff.

User Interface

  • Cycle through open files in each editor group: tab
  • Go to symbol in file: Command palette: @... or O
  • Go to symbol in workspace: T
  • Switch between tabs (terminal and editors): [ and ]

Editing

  • Rename synbol across all workspace: F2
  • Braces, brackets, and parenthesis matching: \
  • Move line up or done: or
  • New line below or above: enter or enter

Highlighting

  • Expand or shrink selection: or

Moving around:

  • : P
  • : N
  • : F
  • : B

Multiple Cursors

  • Exit: escape or escape
  • Add cursor to next or previous line: or
  • Add new cursor with mouse: click
  • Hightlight word at the cursor: D
    • Create cursor at the next matching word: D
    • Remove cursor to the previous matching word: U
    • Create cursor at all matching words: L
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment