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

梦想与她 提交于 2019-12-20 10:26:10

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/24081157/how-do-you-keep-notepad-from-opening-unsaved-documents-from-the-last-session

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!