How to get IntelliJ to recognize Play Framework *.scala.xml Templates
Asked Answered
V

1

11

Has anyone gotten IntelliJ IDEA to recognize *.scala.xml twirl templates? HTML templates seem to get picked up by the IDE just fine and seem to be the only supported template out of box, but any other type of templates do not get picked up.

Valenciavalenciennes answered 25/11, 2015 at 1:55 Comment(0)
O
16

I had the same problem and it seems that adding a file association did the trick.

In Intellij IDEA 15 (ultimate edition):

Preferences > Editor > File Types Search "Play 2" and add "*.scala.xml" (expect a long indexing after that)

File Types with *.scala.html added

Ownership answered 15/12, 2015 at 10:3 Comment(2)
I don't have "Play" or "Play 2" in my file type list. It might be because I'm using Intellij IDEA Community edition, not the Ultimate edition.Liv
@L42 Yes. I think twirl templates are only supported in ultimate edition.Ownership

© 2022 - 2024 — McMap. All rights reserved.