Skip to content

Instantly share code, notes, and snippets.

@regexyl
Last active March 31, 2022 12:07
Show Gist options
  • Save regexyl/95007ffb94a3991f97d51e8d0bc231b5 to your computer and use it in GitHub Desktop.
Save regexyl/95007ffb94a3991f97d51e8d0bc231b5 to your computer and use it in GitHub Desktop.

VSCode Settings

Mac Keyboard Shortcuts

Not exclusive to VSCode.

  • opt + backspace: Deletes 1 word to the left of cursor
  • opt + fn2 + backspace: Deletes 1 word to the right of cursor

Navigate

  • ^⌘→: Shift focused editor into right group
  • ^⌘←: Shift focused editor into left group

Custom Shortcuts

Navigate

  • ⌘f→: Move cursor to editor in right group
  • ⌘f←: Move cursor to editor in left group
Move cursor
  • ⌘ + opt + shift + down: Extend cursor to the line below
Create and delete files
  • opt + cmd + n: Create new file in current location
  • opt + cmd + del: Delete current file
  • opt + cmd + r, opt + cmd + n: Create new file in root location
Pesky node_modules expansion

Command-clicking on an imported function brings us to the node modules package file, but also expands the entire node_modules directory, which is a hassle to close as you have to scroll all the way back up.

  • ctrl + cmd + shift + a: Reveal current file in sidebar (auto-reveal current file is set to false)
  • ctrl + cmd + shift + c: Collapse folders in sidebar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment