Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notepad ++ doesn't save document on exit?

Tags:

notepad++

Situation:

Open a text file in n++, make some modification, press ALT-F4 or Close program. The N++ won't ask "Do you want to save your changes". Instead it quits and text file on hdd remains unchanged.

But when I open the N++ again, the MODIFIED file is still in there. Red tab is indicating unsaved changes and I can save it by ctrl-s. I can also save it by closing the tab (n++ will ask).

I want to save the file automatically every time I close the n++. All of my other istallations does that but this. I could not find any settings in the n++ options. Any idea?

like image 259
Combinatix Avatar asked Jun 27 '14 08:06

Combinatix


People also ask

Where does Notepad keep unsaved files?

Start Notepad ++, click on "Settings" > "Preference". Step 2. Click "Backup" on the window, and find the Notepad ++ unsaved files location in the Backup path.

Does Notepad++ automatically save?

It autosaves every minute, but it's configurable, and allows you to choose to save only the current document or all open documents.

How does Notepad++ keep unsaved files?

1 Answer. Show activity on this post. 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.


5 Answers

New feature added in Notepad 6.6 for which the release notes say:

The main feature of this release is Session snapshot & periodic backup. If this feature is enabled (enabled by default), user won't be asked to save unsaved file as he quits Notepad++, and on startup Notepad++ restores the unsaved file and unsaved untitled document of last session.

This facility is controlled via menu => Settings => Preferences => Backup. For more details see also this section of the Notepad++ User Manual.

like image 106
AdrianHHH Avatar answered Oct 17 '22 22:10

AdrianHHH


As an answer to your question, in the afore mentioned Settings => Preferences => Backup window, uncheck the "Remember current session for next launch" setting. Now you will be prompted to save any modified files when exiting.

like image 24
Aidan Avatar answered Oct 17 '22 23:10

Aidan


This is actually a great feature. First, Periodic backup is great it can prevent data lost when pc suddenly shutdown or crash.

The feature: don't ask to save files is also great.

For me, I opened a lot of files in notepad, also create a lot of tmp files(I don't want to save these tmp files, but it may be useful for x days), in previous version, when I close notepad++(reboot pc or install new version), it asks me whether save all these files. It's a nightmare.

This feature helps me a lot.

Also there is no data lost - all your data is still there after restart. So really nothing to complaint.

like image 38
jeffery.yuan Avatar answered Oct 18 '22 00:10

jeffery.yuan


Yeah - i also love this feature.

If you turn on backup then it does an backup - which i dont want and need.

My solution - Turn Backup on and use Custom Backup Directory As Directory use NUL

Now its working like expected

like image 4
mr netlord Avatar answered Oct 18 '22 00:10

mr netlord


This facility is controlled via menu => Settings => Preferences => Backup.

UnCHECK: "Enable Session Snapshot and Periodic Backup"

Configuración / Preferencias / Backup Quitar CHECKS a Recordar la sesión actual en el próximo inicio

like image 1
R.Alonso Avatar answered Oct 18 '22 00:10

R.Alonso