Beautify your handlebars/mustache fiels, using Prettier.
Before:
To format, use the keyboard shortcut cmd-shift-b
,
After:
Usage
Keybindings
By default it uses cmd-shift-b
to beautify your handlebars.
you can customize these in the Atom's keymap.cson (Atom -> Keymap..
)
Installation
cmd-,
) -> Install -> Search Beautify handlebarsapm install beautify-handlebars
Set Settings -> Editor -> Preferred Line Length
to Soft Wrap.
Settings -> Editor -> Tab Type
as hard
Settings -> Editor -> Tab Type
as soft
Note: If you set
Tab Type
asauto
it will behave same assoft
.
Contributing
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.