auto-format not formatting <script> in play framework template

Hi All. I'm a new Scala and new Play 2.0 user on IDEA 14.1.4 Ultimate & Scala Plugin 1.5.2., and I have an issue where IDEA is not correctly formatting a play template file in my opinion. To recreate: Make a new Scala + Play 2.x project, let it initialize the sbt stuff, and replace 'app > views > index.scala.html' with this unformatted code:

@(message: String)
@main("Welcome to Play") {
@play20.welcome(message)
$(function() {
console.log("$");
});

}
Run 'Code > Reformat Code...' On my setup this only indents lines 3-4, but I expect it to indent more like this:
@(message: String)
@main("Welcome to Play") {
    @play20.welcome(message)
    $(function() {
        console.log("$");
    });

}
Any help would be awesome!
matt
---
Original message URL: https://devnet.jetbrains.com/message/5548104#5548104

0
1 comment

Could someone from JetBrains please reply to this. It's an important feature that (many?) others
would like to see fixed.

0

Please sign in to leave a comment.