PHPStorm ignores handlebars files indentation from editorconfig

I've created a new project with an .editorconfig file

# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

 

The indent size works for all files, except handlebars files (.hbs, .handlebars)

I have installed the editorconfig and the Handlebars/Mustache plugin

Thanks for your help.

 

1
4 comments

Hi there,

What is your IDE version exactly?

If I'm getting this correctly (from EditroConfig related comments for other issues) this may have been already fixed in next minor 2019.2.1 version (current EAP build is available) -- I simply do not use such stuff so cannot verify that myself.

For the moment: try specifying indent size specifically for *.hbs files to see if it will work this way (should).

 

0
Avatar
Permanently deleted user

I have the latest version.

 

I also think that the update made this error. Two weeks before it was working. Do you know when 2.1 is released?

0

Try EAP build to see if it works there -- it has other improvements & fixes as well. It is no worse than a final release in terms of stability (unless you are strictly on release builds).

I do not work for JetBrains so cannot say when they going to release the final 2019.2.1 version: could be today or some point next week. I have not seen any mentions on expected date elsewhere unfortunately.

0
Avatar
Permanently deleted user

EAP is working! THX.

 

But I have another problem with indentation:

 

 

As you can see, the indent from div to component is right. But the parameters are wrong. Is this a setting? I haven't found handlebars under Editor > Code Style.

 

EDIT:

If I remove the editorconfig it works... But this is a "normal" config file (see first post). There is nothing special why phpstorm should do this.

0

Please sign in to leave a comment.