Reputation: 67380
Some code editors, such as WebStorm, have an option to auto-save when the editor loses focus. I've searched for an option like this in the Atom Editor but haven't found anything yet.
Does the Atom Editor have a setting that allows for auto-save of edited files when it loses focus? If so, where can this be set? If not, how would one go about writing a plug-in that does that?
Upvotes: 66
Views: 59644
Reputation: 481
I had installed the autosave and activated package but it does not work in atom.
I installed the autosave-onchange package, and it works perfect, I recommend it. . . The only difference besides that works well for me, is that you record at all times as soon as you make a change . . .
Upvotes: 0
Reputation: 3830
It's late answer, but In case someone needs it.
auto save package
save something when a it's lose focus or get close.
If you want auto save right after every type, You can install autosave-on-change
by ChexWarrior. Check this link. It will auto save right after every type. You can install it from package installer of atom
. Hope it helps.
Upvotes: 3
Reputation: 401
Just add this to your ~/.atom/config.cson
autosave:
enabled: true
Upvotes: 25
Reputation: 2927
autosave-onchange much better alternative!
https://atom.io/packages/autosave-onchange
Upvotes: 23
Reputation: 36051
It seems that the auto-save feature is now embedded in 1.8.0.
But doesn't always work. See issue here.
In order to use it, enable "Back Up Before Saving" in settings.
Upvotes: 0
Reputation: 6460
There's also the save-session plugin which makes Atom behave more like Sublime: the current state of each file is remembered across application instances. This is slightly different than the original request, but also extremely useful.
Upvotes: 8
Reputation: 1209
Yes there is auto save package. You can enable autosave in package settings.
Upvotes: 78