Incorrect indentation for ERB files.

I have ERB, HTML, and Ruby set to 2 spaces for indentation. However, inside an ERB file, I'll wind up with something like this:

<% if @foo %>


<% end %>

Instead of 2 spaces, there are 4 spaces used. Anyone know what's going on there?

1 comment

Hello Andrew,

that's a known issue so please vote and follow it:

It's going to be fixed in RubyMine 2017.1.


Please sign in to leave a comment.