score:0

In order to get intellij IDEA to help developing templates, you need Intellij IDEA Ultimate with the latest Scala plugin updated. https://www.jetbrains.com/idea/features/

Also make sure you enable Play 2 compiler in the settings

It should work without any special configuration in your build.sbt

As a reference you can create a new Play2 project and see the templates properly working https://www.jetbrains.com/idea/help/getting-started-with-play-2-x.html

With this setup working you can use TwirlKeys.templateImports to avoid adding the import to all your templates.


Related Query

More Query from same tag