Last Updated: February 25, 2016
·
5.255K
· stevehalford

Sync Sublime Text 2 settings with Dropbox

A lot of people already do this but I can't find a protip for it.

I use Dropbox to sync my Sublime Text 2 plugins, settings etc. across multiple Macs. The same thing worked with Textmate too, and probably a lot of other apps.

First quit ST2, then run these commands in the terminal.

Create a folder

mkdir "~/Dropbox/Application Support"

Move the existing settings folder to Dropbox

mv "~/Library/Application Support/Sublime Text 2" "~/Dropbox/Application Support/Sublime Text 2"

Symlink the folder back to where ST2 expects it to be

ln -s "~/Dropbox/Application Support/Sublime Text 2" "~/Library/Application Support/Sublime Text 2"

Update:
This will also work for Sublime Text 3 but I've found that Dropbox will complain that it can't sync certain files because they are in use and "conflicted copies" will be created for many files. To get around this, I've turned on advanced selective sync in the Dropbox preferences and chosen not to sync Backup, Cache, Index and Local folders.

4 Responses
Add your response

This method works well too for syncing between Windows and Mac. Just symlink the 'Data' folder in Windows with the 'Sublime Text 2' folder in Mac.

over 1 year ago ·

Other links on the web were only saying to symlink specific folders. Not exactly sure why. I guess I would rather have everything in sync like the above example

over 1 year ago ·

I have had some problems with certain folder since upgrading to Sublime Text 3 - constant complaints from DropBox that certain files are in use, and conflicted copies being created so I've set some folders not to sync now.

I'll find out what they are and update the protip.

over 1 year ago ·

This may explain the problem with syncing:

https://sublime.wbond.net/docs/syncing

over 1 year ago ·