How can you set the code style for Handlebars templates?

Hi.

I need to change the tab size for my Handlebars templates, but there is no Handlebars option within the code style section in the preferences - how is this done?

Thanks.

4 comments
Comment actions Permalink

Handlebars use a code style that corresponds to the template language. So  if you use handlebars for HTML then the HTML code style is used for formatting.

0
Comment actions Permalink

Yep, I've tried that, but tab size, indent, and continuation indent have all been set to 2 in the HTML code style, and tabbing in a Handlebars template still results in 4 spaces.

0
Comment actions Permalink

Ups, reproduced. Looks like a regression. Logged as https://youtrack.jetbrains.com/issue/WEB-15812


0
Comment actions Permalink

Great, thanks Elena.

0

Please sign in to leave a comment.