Beautify JavaScript using esformatter
Issues with the output should be reported on the esformatter issue tracker.
$ apm install esformatter
Or Settings → Packages → Search for esformatter
Open the Command Palette, and type esformatter
.
Can also be run on just a selection. For example the code in a <script>
tag.
There's a Format On Save
option in the Settings.
Some plugins are bundled. PR welcome for more.
Just add the ones you want to your config file:
{
"plugins": [
"esformatter-braces"
]
}
MIT © Sindre Sorhus