.erb files have wrong auto formatting for variables

Hi folks,

i have a new project with puppet (activated the puppet plugin from jetbrains) and some .erb files. Now i was going to check all the given things into a gitlab repo. And as always i reformat the whole code. So far so good.

But in .erb files my variables get shot. For example i have

command[check_foobar]= <%= @NAGIOSPluginsBase -%>/check_foobar

when i reformate it gets to

command[check_foobar]= < % = @NAGIOSPluginsBase - % >/check_foobar

and won't be recorgnized.

Why is this happening, why does it crash the variables. Have found many things regarding .erb files in RubyMine but no real solution for me.

 

Thanks in advance!

0

Are you using PhpStorm? What type have you assigned for .erb files in File | Settings | Editor | File Types?

0

请先登录再写评论。