Sublime Forum

Changing hot exit

#1

I touched a wrong key which caused unknown changes to a file I was working on.
I tried to close the file unsaved so that the changes would be lost, but found that the changes had been saved.
I would like to change this behaviour so that on exit I have a choice to save or lose any changes when closing the file.
I opened “Preferences”, “Settings” and I see two windows, both headed “Prefrences.sublime-settings”. One has a very short file of 18 lines which I can edit, and the other has a very long file of 914 lines which I cannot edit. Presumably they can contradict each other so I do not know what is going on here. How can I get Sublime Text to give me a choice whether to save a file or not?

0 Likes

#2

Sublime Text would always ask before saving any unmodified changes when explicitly closing a file. Maybe your “unknown keys” already included a ctrl+s key binding, which triggered saving.

hot_exit controls whether unsaved changes are preserved in a separate persistent buffer when exiting the application. Those would be restored upon next application start, but also not modify original file until you explicitly command ST to do so.

opened “Preferences”, “Settings” …

This is the side-by-side presentation of settings, with read-only defaults on the left and user settings on the right, which can be edited to override any of the defaults.

0 Likes