adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

Auto-save files #11317

Closed cumminsd closed 9 years ago

cumminsd commented 9 years ago

It would be awesome to auto-save all modified files in the editor when the editor loses focus. You could then make a change, click on the browser window (losing focus on Brackets) and then you would see your changes update in the browser. Other IDE's do this and it definitely increases productivity.

humphd commented 9 years ago

I've done a version of this as a custom extension in my fork, if you want to try in Brackets:

https://github.com/humphd/brackets/blob/bramble/src/extensions/default/Autosave/main.js

abose commented 9 years ago

@cumminsd Thanks for reporting this issue. In brackets you could do this using the live preview feature, and that does not even require any file saving. Autosave on focus switch is a bit worrying to me especially for js/non html-css files. I think this workflow rightly fits in the extension territory for those who prefer it. @humphd Is the extension available in the brackets extension registry?