Set Notepad++ to remember last session?

Set Notepad++ to remember last session?

For me, the resolution was a combination of things. Below is what I did to fix it:

  1. Completely quit out of Notepad++
  2. Deleted the session.xml file found here: C:UsersXXXXAppDataRoamingNotepad++
  3. Open Notepad++
  4. Navigate to: Settings -> Preferences -> Backup
  5. Ensure that Remember current session for next launch and Enable session snapshot and periodic backup are selected

These items allowed me to get my program to remember previous session, and open where I left off.

Similar to mmps answer (made a copy of session.xml then deleted the original). I went to Settings -> Preferences -> Backup and placed a checkmark in Enable session snapshot and periodic backup. This caused a new session file to be created in my backup path. Not sure if this was on previously and inadvertently turned off, but I will check with my cat.

Set Notepad++ to remember last session?

I had this issue also (Windows 7). I noticed the ./AppData/Roaming/Notepad++/session.xml file was not being updated when I closed out of Notepad++ and I think it should have been. So, I closed Notepad++, made a copy of session.xml then deleted the original. I then reopened Notepad++, opened a new page or two and closed it and it appears to now be working correctly as the pages were saved (so far). Sounds like maybe the above mentioned corrupted file was the issue?

Leave a Reply

Your email address will not be published. Required fields are marked *