Sometime around May 2014 Notepad++ had an update where it started saving unsaved documents without being told to. When closing Notepad++ it no longer asks whether or not you want to save or discard unsaved documents and instead just closes. When Notepad++ is opened back up the unsaved documents are there still, as before, listed as New 1; New 2; New 3; etc. It looks like it is automatically saving them somewhere when it gets closed.
How do you turn this off, so that unsaved documents must either be discarded or saved when you close Notepad++? How do you restore the old behaviour?
Unfortunately, despite what others might suggest, it's impossible to recover truly unsaved files in Notepad. Unlike other text-editing apps, Notepad doesn't keep backups, snapshots, or use temporary files. If you never save the document you're editing in Notepad to a file, it only exists in the computer's RAM.
If you want to recover a notepad file that is unsaved after a restart, you can go to C:\Users\USERNAME\AppData\Roaming to find the unsaved text file.
Is there any way to recover unsaved files? Notepad++ will autosave if configured to do so. The default "Backup path" is %APPDATA%\Notepad++\backup (or <Notepad++ install directory>\backup ). Look in this directory for any backup files.
With the Version 6.6 line of Notepad++ there is a new feature called "Session snapshot & periodic backup" which periodically (by default every 7 seconds) autosaves all of your work. It was designed to make sure that you didn't lose your work in case the power went out or your computer crashed or something along those lines. It is this feature that is autosaving unsaved documents.
It's pretty easy to turn off, the option for it is right underneath of the regular "Remember current session for next launch" option. The option you need to turn off is located in the "Backup" section of the settings and is titled "Enable session snapshot and periodic backup", see the screenshot below.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With