How to recover a Notepad++ lost session

notepadsessionsession-restore

I had my Notepad++ with at least 50 opened files on it, organizing all my work.

I left the computer as always hibernating overnight and surprise, this morning all was gone.

An error message popped up when maximizing Notepad++, something along a file not being able to be opened.

I accepted the error and Notepad++ had no files on it.

After rebooting nothing changed, and in the backups folder I only found standalone old dirty files that I worked on a long time ago…

Any thoughts on how to recover my precious working session?

Thanks,

Best Answer

You cannot, but you can secure against happening this again.

This is possible if you have your cloud path set in Preferences:

enter image description here

After the breakdown, immediately turn off syncing with the cloud and restore the original file from there. If your cloud has file versioning, then it is simpler: just retrieve the older version of the sessions.xml.

This also works for all other setting files, see the link above for details.


Also be sure that you updated to at least Notepad++ 7.5.9.

In its list of fixed bugs, there is

  1. Fix possible file corruption during backup or power loss or other abnormal N++ termination.

So yes, this has been addressed in October 2018.

Related Question