Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you keep Notepad++ from opening unsaved documents from the last session?

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?

like image 309
Zell Faze Avatar asked Jun 06 '14 11:06

Zell Faze


People also ask

Can you recover unsaved notes in Notepad?

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.

Where do unsaved Notepad files go?

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.

Can we recover unsaved Notepad ++ 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.


1 Answers

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.

change backup settings

like image 129
Zell Faze Avatar answered Sep 25 '22 15:09

Zell Faze