Warning for unsaved files in notepadpp?
Solution 1:
-
Go to Settings -> Preferences -> Backup
-
Disable Remember current session for next launch
-
Disable Enable session snapshot and periodic backup
From Notepad++ User Manual (emphasis mine):
Session snapshot and periodic backup
- Remember current session for next launch: the current session is the current list of open files. The next time you run Notepad++, it will open with that same list of files
- Enable session snapshot and periodic backup: this will auto-save your changed file once every N seconds to the listed directory (default to %AppData%\Notepad++\backup).
- It is not possible to select this option without ☐ Remember current session ... also being active
- This is also how you enable Notepad++ to remember unsaved changes
- This will allow you to exit Notepad++ and resume, remembering changes to files that hadn’t been intentionally saved
- When you exit Notepad++ with unsaved changes, Notepad++ will not ask you to save changes. It will just keep the periodic backup file, and reload from there rather than from the normal disk location for the file
- If you want Notepad++ to ask to you save edited files every time you close the file or exit Notepad++, do not enable this option.