Closing Notepad++ tabs on closing application

69

7

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.

David Hall

Posted 2009-07-22T03:14:32.417

Reputation: 801

Answer by @user321756 is now the CORRECT answer for the latest version – Valamas – 2015-10-07T22:46:53.187

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 – 2012-10-29T11:54:37.083

Answers

81

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

Dan Walker

Posted 2009-07-22T03:14:32.417

Reputation: 8 869

5

This option has moved since this answer was written. See user321756's answer for the new location.

– dlf – 2014-10-23T18:54:22.930

1Excellent, 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 – 2009-07-22T03:21:51.433

22I 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 – 2009-07-22T03:23:09.530

2An 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 – 2009-07-22T04:04:38.790

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 – 2009-07-22T04:07:22.870

2@Dan: just close the documents (Ctrl+Shift+W) when you start NP++, if you decide don't want them open. – DisgruntledGoat – 2009-07-22T09:24:22.697

45

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"

user321756

Posted 2009-07-22T03:14:32.417

Reputation: 551

3This should be voted up. The chosen answer is now outdated. – Xonatron – 2015-04-14T14:50:27.233