Skip to main content

Using Git to Sync Your VS Code Settings

  • There’s a built-in settings sync, but I’ve frequently found it to be glitchy

  • In one particular instance, I had to fully wipe and reinstall a corrupted VS code installation on my work laptop multiple times until I realized the built in settings sync was the problem and deactivating it solved it

  • I already sync a number of macOS and app settings using my dotfiles

  • No big deal to add vs code to the mix

  • Settings

  • File location in dotfiles can be anywhere

  • Symlink to app installation location

    • Often that’s .config but not this time
  • Can do the same with keyboard shortcuts and snippets

  • Update setup script to automatically create those symlinks on a new Mac

  • Workflow includes committing and pushing changes to those files via my dotfiles repo (which I generally have open since I tweak my configurations frequently)

  • Saving VS Code settings in your dotfiles • Michael Anhari 📖

Inbox