Notepad ++ doesn't save document on exit?

Notepad++

Notepad++ Problem Overview


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?

Notepad++ Solutions


Solution 1 - Notepad++

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.

Solution 2 - Notepad++

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.

Solution 3 - Notepad++

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.

Solution 4 - Notepad++

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

Solution 5 - Notepad++

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionCombinatixView Question on Stackoverflow
Solution 1 - Notepad++AdrianHHHView Answer on Stackoverflow
Solution 2 - Notepad++AidanView Answer on Stackoverflow
Solution 3 - Notepad++jeffery.yuanView Answer on Stackoverflow
Solution 4 - Notepad++mr netlordView Answer on Stackoverflow
Solution 5 - Notepad++R.AlonsoView Answer on Stackoverflow