IntelliJ Format/colour issues when injecting dependencies to templates in Scala Play 2 Views

33 Views Asked by At

In IntelliJ IDE, when I add @this() for injecting dependencies, All the colours go crazy and I also start getting error underlies. The code works absolutely fine, but it both looks ugly and prevents me from inspecting things in the code.

I have spent all my afternoon searching for perhaps a missing plugin or an editor setting or something, but I haven't found anything that resolves this issue.

Am I missing a plugin or something? Any help is much appreciated.

enter image description here

0

There are 0 best solutions below