Format scala template files in IntelliJ

I am using Intellij to create a Play2 project. I installed support for Play2 and Scala plugins. But when I try to format index.scala.html using the IDE, all the JavaScript code in the template gets corrupted (indented). I renamed the file to index.html and tried to format it. Then it turns out to be correctly formatted. How to solve this problem?

+7
scala intellij-idea
source share

No one has answered this question yet.

See related questions:

1338
How can I consistently include line numbers in IntelliJ?
478
IntelliJ inspection gives "Cannot resolve character" but still compiles code
140
How to create an SBT project using IntelliJ Idea?
93
Failed to create Scala class on IntelliJ
67
Configuring scala using IntelliJ
31
No 'scala -library * .jar' in every new InteliJ Scala project
12
Unable to configure Scala in Intellij IDEA 13
7
Play2 project in Intellij 12
6
IntelliJ IDE does not detect Scala templates correctly
4
problem with setting up scala project in intellij

All Articles