Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make Sublime Text 2 prompt me before exit?

Tags:

sublimetext2

There have been too many times where I have accidentally clicked the X on the top right window in Sublime Text 2. I then loose my undo/redo history.

Edit: I have tried to set hot_exit to false in default and user settings.

enter image description hereenter image description here

like image 410
isurfbecause Avatar asked Sep 10 '12 20:09

isurfbecause


1 Answers

Look for hot_exit in Preferences.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.

like image 107
ews2001 Avatar answered Oct 23 '22 19:10

ews2001