Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

enter image description here Everytime i open Sublime , these tabs automatically opens. How do i fix this. I am unable to find any setting for this.

share|improve this question
add comment

2 Answers 2

up vote 8 down vote accepted

Check the content of the directory ~/.config/sublime-text-2/Settings for a file called Session.sublime_session

If those files are included in there, remove them

NB: With Sublime Text 3, the path is:

~/.config/sublime-text-3/Local/Session.sublime_session
share|improve this answer
    
Unfortunately ST2 seems to create that file again. I solved that creating an empty file with read only permissions. Thanks. –  Salem Mar 6 '13 at 15:44
add comment

There is actually a better solution implemented in Sublime Text. Select Preferences-> Settings - User and set remember_open_files and hot_exit to false. The resulting file should look like this:

{
    "remember_open_files": false,
    "hot_exit": false
}

(All the possible settings can be seen in Settings - Default.)

Just restart Sublime Text afterwards (it may be required to restart the program two times, one time to apply the settings) and it should start up without any open files.

Note: I only was able to test this with Sublime Text 3, but I am pretty sure that this settings exist in version 2 as well.

share|improve this answer
    
this is the right answer ( it also work on sublime 3 ) –  Postadelmaga May 9 at 21:49
    
Although this is correct, this does not help if Sublime Text crashes on start-up. –  Wok Jul 18 at 14:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.