Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent Sublime Text 2 from opening that last open file / project when starting up

I am on Lion - and in the command line, when I open up my project using "subl ." in my project folder - it opens up the last project I had open before I quit Sublime.

I have the Max Preference "Restore windows when quitting" unchecked.

How to I prevent this behaviour? Is there a preference setting for this?

like image 976
Joerg Avatar asked Oct 25 '11 13:10

Joerg


People also ask

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.

How hide open files Sublime?

1 Answer. Show activity on this post. You can press ⌘ cmd + ⇧ shift + . while the dialog is open, which will toggle show/hide hidden files.

How do I open multiple projects in Sublime Text?

Open one of the projects in Sublime Text just like you always do. Do one of the following: Drag the root directory of the second project from the file explorer to the sidebar of the first project ST window. In your terminal cd to the second project and enter subl .


2 Answers

I think the behavior you want can be enabled by changing the hot_exit and remember_open_files settings. If you check out the "Global Settings - Default" preferences, there are some comments there describing these settings.

If you want to change them, you should override them in the "Global Settings - User" file to preserve your changes across updates.

like image 160
Sean Carpenter Avatar answered Sep 28 '22 01:09

Sean Carpenter


If anyone is wondering how to do this in sublime text 3, copy and paste the following into settings - user:

"hot_exit": false, "remember_open_files": false, 
like image 23
MIke Wizowski Avatar answered Sep 28 '22 02:09

MIke Wizowski