Sign up ×
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
Answer by @user321756 is now the CORRECT answer for the latest version –  Valamas yesterday

3 Answers 3

up vote 39 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
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 at 14:50

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
This doesn't really answer the question, it's just a wish for a solution. –  fixer1234 25 mins ago
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. –  Ƭᴇcʜιᴇ007 2 mins ago

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.