Any way to have Notepad++ automatically save on exit?

6

0

Is there any way I can get Notepad++ to save and close under one command?

For example on hitting Alt-F4, Notepad++ would not only close the program, but also save the document.

(manually editing a very large number of txt documents, and want to avoid having any additional number of key strokes)

kyrenia

Posted 2014-11-24T14:23:55.460

Reputation: 255

possible duplicate of Choose whether to save when quit

– Ƭᴇcʜιᴇ007 – 2014-11-24T14:35:55.920

1@Ƭᴇcʜιᴇ007 no duplicate - that q. is doesn't address how to auto-save on exit (that question asker incorrectly assumed notepadd++ was set to save automatically, which isn't the case) – kyrenia – 2014-11-24T14:39:19.947

Ctrl+Shift+S (File/Save All) then Alt+F4 is only 3 extra keystrokes and could be put in a macro very easily ... – DavidPostill – 2014-11-24T21:06:22.297

Answers

3

There isn't a plugin to do exactly what you want, but there is one to auto save open documents which may be an easy alternative.

It's called AutoSave and is available to download here.

It's configurable to save all or just current file at a user-defined interval along with offering some over-write options.

More information about it is available here.

winseybash

Posted 2014-11-24T14:23:55.460

Reputation: 186

1thanks, but unfortunately this doesn't help in my instance - I will be making minor edits to txt files which take just 1 or 2 seconds to do... looking to always save changes on exit. (task will be repeated by someone approx 100,000 times) The plugin mentioned only allows option to save in minute intervals. (i.e. autosaving every 1min is most frequent will do) – kyrenia – 2014-11-24T14:42:10.923

@kyrenia, at least from v1.20 ( 2010-07-16) Franco Stellaris Autosave plugin now handles autosave on loss of focus. – holroy – 2015-07-19T01:28:42.477