Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
Answer by @user321756 is now the CORRECT answer for the latest version – Valamas Oct 7 '15 at 22:46
up vote 47 down vote accepted

Settings > Preferences > Backup > 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
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
@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
This option has moved since this answer was written. See user321756's answer for the new location. – dlf Oct 23 '14 at 18:54

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
This should be voted up. The chosen answer is now outdated. – Xonatron Apr 14 '15 at 14:50

Your Answer


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.