Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Sublime Text 3 opening your last file/folder when started?

Tags:

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?

like image 703
iori Avatar asked Mar 19 '15 01:03

iori


People also ask

How do I open a previous File in Sublime Text?

SublimeText already has the menu item File -> Open Recent -> Reopen Closed File. Also Sublime Text has the ability to save and restore all its open Windows when it is exited via File -> Exit.

How do I make Sublime Text not open last Project?

Make sure Sublime is closed, then delete Auto Save Session. sublime_session and Session. sublime_session . This will not only close all the windows and tabs you have open, but it will also remove the entries in the File -> Open Recent and Project -> Open Recent menus.


2 Answers

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.

like image 108
MattDMo Avatar answered Nov 17 '22 00:11

MattDMo


Try adding this in your setting:

"create_window_at_startup": false,

It helped in my case...

like image 30
Arash_Jb Avatar answered Nov 17 '22 00:11

Arash_Jb