Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

auto-format not formatting in play framework template

$
0
0

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


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>