I recently did a find and replace over a whole project where every file had to be edited. There were about 2000 files that had to be edited. My Sublime text was crashing after a while.
Problem was that, after I closed Sublime text and reopened it, the 2000 files reopened automatically, which meant my Sublime Text kept crashing. You can disable the setting to open files that were open before closing Sublime Text by going to Sublime Text 2 -> Preferences -> Settings – Default
Then search for hot_exit and remember_open_files and set both these settings to false.
// 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": false, // remember_open_files makes the application start up with the last set of // open files. Changing this to false will have no effect if hot_exit is // true "remember_open_files": false,
If you then reopen Sublime Text, no previously open files should open up.