83

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.

2
  • 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, 2012 at 11:54
  • Answer by @user321756 is now the CORRECT answer for the latest version
    – Valamas
    Oct 7, 2015 at 22:46

3 Answers 3

101

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

6
  • 1
    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, 2009 at 3:21
  • 28
    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, 2009 at 3:23
  • 3
    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, 2009 at 4:04
  • 2
    @Dan: just close the documents (Ctrl+Shift+W) when you start NP++, if you decide don't want them open. Jul 22, 2009 at 9:24
  • 5
    This option has moved since this answer was written. See user321756's answer for the new location.
    – dlf
    Oct 23, 2014 at 18:54
47

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"

2
  • 3
    This should be voted up. The chosen answer is now outdated.
    – Xonatron
    Apr 14, 2015 at 14:50
  • 2
    The OP wanted this option OFF, not ON. This answer is incorrect, it should be "Uncheck", which makes it a duplicate of the accepted answer.
    – Mageician
    Aug 6, 2020 at 18:39
1

In latest version uncheck

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

Remember the current session for next launch

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .