• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

beautify-handlebars

Beautify your handlebars/hbs/handlebars files using prettier
  • #handlebars
  • #mustache
  • #hbs
  • #beautify
  • #format
kandhavivekraj
1,892
0
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

beautify-handlebars

Travis Build Status Github Version

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

  • In Atom, go to Settings (cmd-,) -> Install -> Search Beautify handlebars
  • Or, run apm install beautify-handlebars

Settings

Line Length

Set Settings -> Editor -> Preferred Line Length to Soft Wrap.

Indent using tab or space
  • If you want to indent using tabs, set Settings -> Editor -> Tab Type as hard
  • If you want to indent using spaces, set Settings -> Editor -> Tab Type as soft

Note: If you set Tab Type as auto it will behave same as soft.

Contributing

  • Your contributions are really appreciated or raise an issue

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by