Synchronising your Sublime Text 2 preferences with Dropbox

This post was published in 2012 and is kept here for reference. It may contain information that's outdated or inaccurate.

I use Sublime Text 2 both at work and at home, and it’s hard to manually keep my settings/packages in sync.

I decided to use Dropbox to keep my packages/preferences for Sublime Text 2 in one place, and then I created a symbolic link from the Dropbox directory to the Application Support directory for Sublime Text 2:

Mac OS (and Linux)

ln -sfF "~/Dropbox/Application Settings/Sublime Text 2/Packages/" "~/Library/Application Support/Sublime Text 2/Packages"

This command will create a symbolic link of the Packages directory stored in my Dropbox in the Sublime Text 2 directory, meaning that any computer I set up in this way will use the same settings/packages.

Windows

mklink /D "C:\Users\Max\AppData\Roaming\Sublime Text 2\Packages" "C:\Users\Max\Dropbox\Application Settings\Sublime Text 2\Packages"

This post is also available in plain text

[Archived comments]

Tomás Mayr commented

You forgot to thank me.

Max Glenister's avatar picture

Max Glenister commented

No problem :)

Michael Merline commented

I’m getting a “syntax is incorrect” error on Windows. Any idea what I’m doing wrong? mklink /D “C:\Users\USER\AppData\Roaming\Sublime Text 2\Packages” “C:\Users\USER\Dropbox\Apps\Sublime Text 2\Packages”Also, should the folders I’m trying to link already exist before running the command?

Oaattia commented

Great One, thanks

Benaiah Mischenko commented

First, you have to replace the quotes - the quotes you copy from here are fancy curly quotes, and will kill the command. Second, The syntax of his command is incorrect: it should have the arguments the other way around. Third, you should create all but the final folder in the link path in your Dropbox folder. Hope this helps!

Guest commented

One issue to beaware of is related to keystroke bindings. Windows and Mac keystroke bindings are different, so it’s probably best that you do this only if allyou computers run the same OS. Yes I found this out the hard way. Maybe there is a way around this, but I don’t know what the solution is.

Guest commented

One issue to be aware of is related to keystroke bindings. Windows and Mac keystroke bindings are different, so I suggest you do this only if all your computers run the same OS. Yes, I found this out the hard way! There may be a way around this issue but I don’t know the solution.

[Comments]

Want to comment? You can do so via Github.
Comments via Github are currently closed.

[Webmentions]

Want to reply? I've hooked up Webmentions, so give it a go!