26

I'm on Mac running Yosemite. I use Sublime Text 3.

In my default Settings, I have it like this :

"hot_exit": true,
"remember_open_files": true,

When I close a window and reopen it back, my old open files/folder didn't come back. Quit it, Reopen it - still didn't recall anything back.

I don't want that.

How do I prevent this behaviour?

iori
  • 3,236
  • 12
  • 43
  • 78

2 Answers2

62

In order for hot_exit and remember_open_files to work, you can't just close the window by clicking on the red dot - you need to completely quit Sublime with Q, while the windows are still open. If you close a window, its contents are gone.

MattDMo
  • 100,794
  • 21
  • 241
  • 231
  • Ohh I see. I will try that now. Thanks for the tip. – iori Mar 19 '15 at 01:36
  • 4
    @Dogoku that's how Macs work, and have *always* worked. Personally, I find it annoying on PCs when I close a window, then have to start the whole program again. It's a design decision made by the OS architects. – MattDMo Sep 07 '15 at 19:40
5

Try adding this in your setting:

"create_window_at_startup": false,

It helped in my case...

Arash_Jb
  • 59
  • 1
  • 1
  • Not in mine though: meaning if you close the window with red dot. No old content is restored on restarting Sublime (3). Accepted answer works, close sublime with CMD+Q and reloading works, at least with those 2 user settings defined. – straville Sep 07 '17 at 12:11