Auto-save in Atom Editor

。_饼干妹妹 提交于 2019-12-03 23:45:17

问题


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?


回答1:


Yes there is auto save package. You can enable autosave in package settings.




回答2:


autosave-onchange much better alternative!

https://atom.io/packages/autosave-onchange




回答3:


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.




回答4:


Just add this to your ~/.atom/config.cson

autosave:
  enabled: true



回答5:


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.




回答6:


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.




回答7:


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 . . .



来源:https://stackoverflow.com/questions/29902834/auto-save-in-atom-editor

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