Can't indent all line in *.html.erb file

Completed

By using `Reformat Code` I can change indents and spaces in `*.rb` files.

But when I try in a `*.html.erb` file it show `No lines changed: content is already properly formatted` message even though the indents are incorrect like:

 

```

<div>

<div>foo</div>

<div>bar</div>

  </div>

```

I can indent only a line by using `Tab` key or `Auto Indent Lines` command.

How can I indent all lines in `*.html.erb` files by using `Reformat Code`?

This is my config of ERB code style.

Thanks

 

2 comments
Comment actions Permalink

Hello,

could you please specify what RubyMine version you use. It should be fine in the last 2017.1 EAP, for example (please check my screenshot).

0
Comment actions Permalink

Thanks, it works fine with 2017.1 EAP.

I checked the function with the following version.

RubyMine 2016.3.2
Build #RM-163.10154.57, built on January 19, 2017
Licensed to Tetsuya Yuasa
You have perpetual fallback license for this version
Subscription is active until July 1, 2018
JRE: 1.8.0_112-release-408-b6 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

0

Please sign in to leave a comment.