## Specify Path to User Settings File?

### Specify Path to User Settings File?

Is it possible to specify the path of the user settings file within Sublime Text?

I'd like to point the program to my Base File.sublime-settings file that's sitting in my Dropbox folder, so I can automatically sync settings changes across different machines that I develop on.

The file currently resides at:

Code: Select all
C:\Users\<username>\AppData\Roaming\Sublime Text 2\Packages\User\Base File.sublime-settings

alecrust

Posts: 4
Joined: Thu Sep 01, 2011 10:54 pm

### Re: Specify Path to User Settings File?

On Windows 7, you can probably create a symlink in the User folder. (Haven't tried myself, though.)
guillermooo

Posts: 738
Joined: Thu Jul 23, 2009 9:06 am

### Re: Specify Path to User Settings File?

guillermooo wrote:On Windows 7, you can probably create a symlink in the User folder. (Haven't tried myself, though.)

Or on other platforms, just a symbolic link should do it.
jbrooksuk

Posts: 905
Joined: Sun Apr 11, 2010 10:37 am
Location: England

### Re: Specify Path to User Settings File?

Could you provide more details on how to do this? I don't know what a "symlink" is and my Googleing hasn't helped much.

Am I right in thinking this functionality doesn't come with Sublime Text 2 out of the box?
alecrust

Posts: 4
Joined: Thu Sep 01, 2011 10:54 pm

### Re: Specify Path to User Settings File?

guillermooo

Posts: 738
Joined: Thu Jul 23, 2009 9:06 am

### Re: Specify Path to User Settings File?

Yes, I came across that article when searching on Google. It didn't give me enough information to be able to achieve this on Sublime though.

Could you explain the basics of this please?
alecrust

Posts: 4
Joined: Thu Sep 01, 2011 10:54 pm

### Re: Specify Path to User Settings File?

alecrust wrote:Yes, I came across that article when searching on Google. It didn't give me enough information to be able to achieve this on Sublime though.

Could you explain the basics of this please?

If you are having trouble just download the portable and put the entire thing on dropbox - it's only a 30 megs.
atomi

Posts: 345
Joined: Thu Jan 20, 2011 5:06 pm
Location: Los Angeles CA US

### Re: Specify Path to User Settings File?

That's not really an acceptable solution for me for a few reasons.

If someone can give me even just a rough overview of how to use a symlink to achieve this I'd really appreciate it.
alecrust

Posts: 4
Joined: Thu Sep 01, 2011 10:54 pm

### Re: Specify Path to User Settings File?

Apparently, you need to use a directory junction. This feature is scarcely documented and has important drawbacks you need to know (check Wikipedia).

1. Start cmd session as admin
2. Navigate to Packages
3. Move Packages to desired location (same volume, see Wikipedia)

This will kind of work, but in my brief testing it trips up Sublime Text file system watcher. (Or maybe it isn't posible to monitor changes for reparse points, I don't know.)

Be sure to remove it carefully if you need to, or you may end up deleting important files. Safest way seems to be like this:

Code: Select all
fsutil.exe reparsepoint delete User

... which funnily enough, will leave an empty User directory behind.

Judging by the obscure documentation on this feature, it looks like somebody doesn't want you to use it.

Tested on Windows 7 Ultimate
guillermooo

Posts: 738
Joined: Thu Jul 23, 2009 9:06 am