Beautify is an extension that wraps the open source project, JS Beautifier. This is a great example of how Brackets, being built on web standards, can make use of other libraries to easily extend and add new features.
Once you’ve downloaded and extracted the extension into your Bracket’s extension folder, you’ll get a new command in your edit menu called “Beautify.”
Note that the Read Me for this extension says that you run the formatter by using CTRL-SHIFT-F. Instead the extension is bound to CTRL-ALT-L. (Those of you on Macs would use CMD-ALT-L.)
Here is a quick demonstration of how this extension works:The YouTube ID of OxcUmk_fkyM?modestbranding=1&vq=hd720 is invalid.
I’ll point out that another extension exists that does formatting as well – Auto Formatter. This one is interesting as it actually makes use of a feature included in CodeMirror (the core editor library in Brackets).