Sublime Forum

Is settings.set(name,value) permanant or in memory

#1

I have some code that checks the value of a setting and I then set it if its empty. This seems to work fine but when I check the plugin settings file its still empty.

Is this because doing settings.set just sets the value in memory?

Is there a way to make it permanent and written to file?

0 Likes

#2

settings.set(…) changes the value in memory.

You need also to store the settings file with:
sublime.save_settings(settings-file)

0 Likes

#3

Thanks!

0 Likes