Disable remember open files in Sublime text 2

Disable remember open files in Sublime text 2

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

Screen Shot 2013-07-02 at 22.37.49

 

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. 

3 thoughts on “Disable remember open files in Sublime text 2

  1. If Sublime crashes on start-up, how did you open the preferences? Doesn’t that require Sublime to be running?

    1. The preferences are just a text file; you don’t NEED to open them in Sublime. You can edit them in any other text editor (that isn’t currently crashing on startup) and save them from there.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s