Sublime Text stores settings and packages in %APPDATA%\Sublime Text 2
folder by default. Quick search did not reveal any way of forcing it use some other location. In order to sync the settings by using Dropbox, the files should obviously reside inside the Dropbox folder (eg c:\users\juhap\Dropbox)
The following instructions are written for Sublime Text 2 (beta) and Windows 7. Some older versions of Windows might not have the mklink -command that is used to create a symbolic link.
- Create a new folder inside your Dropbox folder, for example
c:\users\juhap\Dropbox\apps\sublime
- Move
Packages, Installed Packages and Pristine packages
from%APPDATA%\Sublime Text 2
to the new folder - Create symbolic links for the directories pointing from the Sublime data directory towards your Dropbox folder. In order to do this, you need start cmd.exe as Administrator. Navigate to
%APPDATA%\Sublime Text 2
before executing the following commands:
mklink /D "Installed Packages" "C:\Users\juhap\Dropbox\apps\sublime\Installed Packages"
mklink /D "Packages" "C:\Users\juhap\Dropbox\apps\sublime\Packages"
mklink /D "Pristine Packages" "C:\Users\juhap\Dropbox\apps\sublime\Pristine Packages"
And that’s it.