Skip to content

Instantly share code, notes, and snippets.

@rauschma
Last active April 17, 2022 11:00
Show Gist options
  • Save rauschma/e091fbfb06807c4944a026a8a4237860 to your computer and use it in GitHub Desktop.
Save rauschma/e091fbfb06807c4944a026a8a4237860 to your computer and use it in GitHub Desktop.

Visual Studio Code shortcuts I use often

Navigation

Sidebar:

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

Navigating in current editor:

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

Files

  • Cmd-Del: trash selected files

Editing

Editing text:

  • Cmd-Shift-K: delete all currently selected lines (no selection = current line)
  • Opt-Up-Arrow, Opt-Down-Arrow: move selected lines
  • Opt-Shift-Up-Arrow, Opt-Shift-Down-Arrow: duplicate selected lines

Other:

Refactoring

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

Tab management

  • 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
@aindriu80
Copy link

And the P.C version

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