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

Custom Shortcuts

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.

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