In order to get intellij IDEA to help developing templates, you need Intellij IDEA Ultimate with the latest Scala plugin updated.

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

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