Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to make Notepad++ close all open tabs when it is shut down?

Currently when a new file is opened with Notepad++ all previously open tabs (and of course the files open in those tabs) are reopened.

share|improve this question
    
Related question: Where are the paths of last opened files. Useful in case you cannot open Notepad++ because there is a huge file in this list. –  rds Oct 29 '12 at 11:54

3 Answers 3

up vote 33 down vote accepted

Settings > Preferences > MISC > Uncheck Remember the current session for next launch

share|improve this answer
    
Excellent, thank you! I knew that this had to be possible, but for somereason never thought to get under MISC. Now to decide if I actually want to change the behaviour... –  David Hall Jul 22 '09 at 3:21
11  
I can never decide which I want either. I need a program which reads my mind and only shows the previous session if I plan to work on those files. :) –  Dan Walker Jul 22 '09 at 3:23
    
An interesting option would be to have it remember the session if you hold down a modifier key while closing the program or something. Or, like Firefox can, just prompt you when you close it. –  jtbandes Jul 22 '09 at 4:04
    
The problem with that is that I often don't know if I will want it until the next time it starts. I think it would work better if it restored the session if you hold down a modifier key while it starts up. (Hmm, I may have to make some sort of experimental app for this...) –  Dan Walker Jul 22 '09 at 4:07
2  
@Dan: just close the documents (Ctrl+Shift+W) when you start NP++, if you decide don't want them open. –  DisgruntledGoat Jul 22 '09 at 9:24

As an update for anyone that was looking for the answer to this as I was, the latest version of Notepad++ (v. 6.6.1) has this option under:

SettingsPreferencesBackup → Check "Remember current session for next launch"

share|improve this answer

I think the problem is just, that opened tabs get more and more until the pc needs eternal for even opening Notepad++ and the remembered tabs. There should be an option to limit the age of tabs for being reopnend, so i could in example tell npp just to reopen tabs if they are younger than 24hours or so. So I could leave the option on without runnign into that too many tabs problem.

share|improve this answer

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.