is there an autosave function/plugin for notepad++?

血红的双手。 提交于 2019-12-18 18:34:17

问题


After an unplanned system restart, all of my Notepad++ temp (and unsaved) tabs are gone.

How can I avoid this in future? I don't want to have to save explicitly every single temp file with a file name.

Is there a plugin for NP++, which saves my session every time I'm editing an active tab or every X minutes?

Or is there an equivalent (and comfortable) editor to NP++, which autostores it's session automatically?


回答1:


You can find a Notepad++ plugin called AutoSave for autosaving your files here: https://sites.google.com/site/fstellari/nppplugins

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




回答2:


To date, there are two AutoSave plugins available.

To download, click on the Plugins menu and select Plugin Manager (or Plugins Admin). It will pop-up a window with a list of plugins.

  1. Autosave by Franco-stellari — This autosaves files. Option available to configure timing after autosave, or autosave when npp loses focus.

  2. Autosave2 by www.scout-soft.com - This autosaves files by creating copy of the file. This is useful in case you retain previous saves, such as for incremental development.

Select either of the two AutoSave plugin available and click on Install. If the plugins are not listed, use the links above, and save the .dll to npp's plugins folder according to instructions on the sites.

Update:

in the newest version of Notepad++:

  1. save the plugin's .DLL in Notepad++'s plugins\[plugin name] folder,
  2. go SettingsImportImport Plugin(s)... and select the .DLL you just saved,
  3. Restart N++. The plugin should appear in the "Plugins" menu.



回答3:


From Notepad++ 6.6 or later there are in core and don't need any plugin.
Via menu => Settings => Preferences => Backup => Enable session snapshot and periodic backup



来源:https://stackoverflow.com/questions/18656899/is-there-an-autosave-function-plugin-for-notepad

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