Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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