How to make Sublime Text 2 tell me before exiting?

There were too many times when I accidentally clicked X in the upper right window in Sublime Text 2. Then I lose the undo / redo history.

Edit: I tried setting hot_exit to false in the default and user settings.

enter image description hereenter image description here

+8
sublimetext2
source share
2 answers

Look for hot_exit in .sublime-settings

// Exiting the application with hot_exit enabled will cause it to close // immediately without prompting. Unsaved modifications and open files will // be preserved and restored when next starting. // // Closing a window with an associated project will also close the window // without prompting, preserving unsaved changes in the workspace file // alongside the project. "hot_exit": true, 

and set it to false.

+8
source share

Set the local history of the plugin.

Each time you modify a file, a copy of the old contents is stored in the local history.

Or do it using package management ( If you don’t have one yet, install it )

Or get it on github

0
source share

All Articles