Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kevinrodbe/2a6f497fb1a8ed8af211ce010def4b1a to your computer and use it in GitHub Desktop.
Save kevinrodbe/2a6f497fb1a8ed8af211ce010def4b1a to your computer and use it in GitHub Desktop.

Visual Studio Code shortcuts I use often

Navigate:

  • F8: jump to next error
  • Ctrl--: go back to previous code location

Sidebar:

  • Cmd-Shift-F: search
  • Cmd-Shift-E: files

Refactor:

  • Cmd-.: various operations (fix, extract, …)
  • F2: rename current symbol

Delete:

  • Cmd-Shift-K: delete current line
  • Cmd-Del: trash file

Tabs:

  • Cmd-Opt-T: close all other tabs
  • Cmd-K Return: keep current tab open
  • Cmd-K Cmd-W: close all tabs
  • Cmd-Opt-S: save all tabs

Also – multiple selections: see next file. Source: https://code.visualstudio.com/docs/getstarted/keybindings#_default-keyboard-shortcuts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment