Sublime Forum

[Solved] How to disable the reopening of previously open files in ST3?

#1

Is there a way to prevent SublimeText 3 from reopening files that were open when the editor was last used? Another post in this forum refers to the “remember_open_files” setting, but I checked the Preferences file and I could find no such setting.

I am working on a file that is being edited via various computers and synched via DropBox. When I launched SublimeText on a rarely used computer, it seems to have opened an outdated version of the file, which was then propagated to the other computers, overriding the latest version of the file.

0 Likes

#2

I think the setting you want to tweak is hot_exit; it defaults to true so it’s probably turned on:

    // 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,

I just did a simple check, and with it off closing and restarting sublime gave me an empty window, so it may do what you want.

1 Like

#3

@OdatNurd It worked, thanks!

0 Likes