Home Download Buy Blog Forum Support

Set custom location for "User" directory

Set custom location for "User" directory

Postby firefusion on Sat Oct 17, 2009 12:50 pm

I'd like to be able to set a custom location for the "User" directory that sits in AppData\Roaming\Sublime Text\Packages\User so that i can sync my themes, snippets and prefs with other computers via DropBox.
Posts: 218
Joined: Fri Oct 16, 2009 7:37 am

Re: Set custom location for "User" directory

Postby gpfsmurf on Mon Oct 19, 2009 6:41 am

You can use the --data command line option. You'll need to add it to every shortcut you use.

You can also add it to the "Open with Sublime Text" context menu with this .reg:
Code: Select all
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command]
@="X:\\PortableApps\\Sublime Text\\sublimetext.exe --data \"X:\\PortableApps\\Sublime Text Data\" \"%1\""

Of course, you'll need to change the paths.

I use it with dropbox, it works well, the only file that sometimes has conflicts is Auto Save Session.sublime-session
Posts: 211
Joined: Mon Jun 23, 2008 6:31 pm

Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 7 guests