Skip to content

Instantly share code, notes, and snippets.

@numbnet
Created December 25, 2019 06:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save numbnet/c948412a72fff6c66ed0ea388c8249e1 to your computer and use it in GitHub Desktop.
Save numbnet/c948412a72fff6c66ed0ea388c8249e1 to your computer and use it in GitHub Desktop.
How to backup Sublime Text 3 settings

For PackageControl and Settings sync, follow these instructions.

However, on Windows, symlinking the User folder breaks auto-reload for Settings changes.

To bypass this, either symlink the parent folder - Packages or the main Sublime Text 3 folder.

Make sure to gitignore/exclude everything but the User dir, as they are installed packages and caches.

Code:

cd "$env:AppData\Sublime Text 3\"
mkdir $env:UserProfile\Sublime
mv Packages $env:UserProfile\Sublime\
New-Item -ItemType "SymbolicLink" -Path "Packages" -Target "$env:UserProfile\Sublime"

Gitignore:

sublime/*
!sublime/User/
sublime/User/*
!*.sublime-settings
!*.sublime-keymap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment