• Login
Community
  • Login

How to get Notepad++ to close all files upon closing the program?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 2 Posters 1.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    Patrick Zonneveld
    last edited by Oct 28, 2023, 3:54 PM

    I recently discovered Notepad++ and found it very handy, however it has one nasty habit. It keeps old files open upon closing the program, so that next time you open the program those files are open again. That’s not good!

    Initially I didn’t notice that, which resulted in “changes to all files” being processed in those old files as well. I only wanted them processed in the files which I had recently opened. Now I have to find a way to undo them in the files which were still open, but shouldn’t have been open.

    How do I set Notepad++ so that if it closes, it closes all files. Next time you open it, it should only open the files you open at that moment. Old files should not be opened.

    C 1 Reply Last reply Oct 28, 2023, 4:03 PM Reply Quote 0
    • C
      Coises @Patrick Zonneveld
      last edited by Oct 28, 2023, 4:03 PM

      @Patrick-Zonneveld said in How to get Notepad++ to close all files upon closing the program?:

      How do I set Notepad++ so that if it closes, it closes all files. Next time you open it, it should only open the files you open at that moment. Old files should not be opened.

      From the menu bar, open Settings | Preferences…, select Backup on the left side, then uncheck Remember current session for next launch.

      P 1 Reply Last reply Oct 28, 2023, 6:17 PM Reply Quote 5
      • P
        Patrick Zonneveld @Coises
        last edited by Oct 28, 2023, 6:17 PM

        That did the trick, thanks!

        1 Reply Last reply Reply Quote 1
        1 out of 3
        • First post
          1/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors