Sublime Forum

Does ST2 rewrite User/Preferences.sublime-settings?

#1

[Windows 7] I have various user preferences set in User/Preferences.sublime-settings. Sometimes I comment out a preference or two in that file so that I can get default behavior for a short time, and later I uncomment the user preferences to get them back. Yesterday, for the first time that I’ve noticed, I lost all commented lines from the file (including some settings that I had temporarily commented out). It suggests that ST2 rewrote the file, stripping out all comments. Anyone know under what circumstances ST2 would rewrite that file? Kind of surprised that ST2 would ever touch it. Only thing I can think that’s unusual is that yesterday I paid for ST2 and added my license. Thanks.

0 Likes

#2

It rewrites the file when you change user preferences using e.g. the menus. So if you change font size or color scheme or something like that, it’ll rewrite your file.

0 Likes

#3

OK, that makes sense. Thanks for your help.

0 Likes

#4

Is there a way to stop that behavior?

0 Likes

#5

I think you may be able to create a dummy package to hold your Preferences such MyDummyPackage/Preferences.sublime-settings. There are some catches.

  • User/Preferences.sublime-settings will overwrite the settings of that package. So keep the settings in MyDummyPackage/Preferences.sublime-settings
  • Settings changed via command or the application will be applied to User/Preferences.sublime-settings so just let the application change these settings there.

More info;
docs.sublimetext.info/en/sublime … e-settings

0 Likes