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.
Source: stackoverflow.com
Related Query
- TwirlKeys.templateImports with Play not being resolved in IntelliJ IDEA template files
- Scala Compiler not found in Intellij IDEA 11 with Play 2.0 project
- IntelliJ IDEA Hotkey for comment does not work with Scala
- How to get Scala imports working in IntelliJ IDEA with the Play framework?
- How do I get Intellij IDEA 12.0 to work with Play Framework 2.1.0 app and Scala 2.10.0?
- Play with Activator Issue on IntelliJ Idea 14
- Could not import the newly generated play framework project into IntelliJ IDEA 15
- IntelliJ IDEA 12 with Play 2.0. No Java/Scaladocs
- IntelliJ Idea Play framework Twirl template formatting settings?
- Play project compiles in IntelliJ IDEA but all imported Java classes are red (= not resolved)?
- Variable not appearing when debugging scala code with IntelliJ IDEA
- Class not found in Scala template with Play Framework
- Idea IntelliJ 14.0.3 setup with play framework
- How to use IntelliJ with Play Framework and Scala
- How do I change intellij idea to compile with scala 2.11?
- "host not allowed" error when deploying a play framework application to Amazon AWS with Boxfuse
- Play 2.2.2 with IntelliJ 13 & SBT 0.13 cant run - No main class detected
- How to get rid of scalac ServerException with IntelliJ Idea
- IntelliJ Idea Scala files not available in 'New' context menu
- How to know if a Scala file modified with IntelliJ Idea is saved and if it is checked into CVS?
- IntelliJ IDEA w/ Scala Plugin not finding scala.concurrent
- Play 2.0 templating - Scala `match` and `val` do not compile in a view template
- corrupt resolve for Play 2 framework support in IntelliJ IDEA
- IntelliJ Idea compiling with SBT by default
- How do I make intellij Idea to highlight Scala script correctly with #! (shebang)
- reduceByKey method not being found in IntelliJ
- Scala worksheet does not evaluate object in IntelliJ IDEA 2016.2
- Generate return type signature in Scala with Intellij Idea
- Stuck at "Hello World" with IntelliJ IDEA 9.0.1 for Scala
- Debug not working with play framework activator, scala and eclipse
More Query from same tag
- How to use the Heroku DATABASE_URL environment variable in Scala?
- How in Spark application create CSV file from DataFrame (Scala)?
- Overloaded method foreachBatch with alternatives
- transform an JsArray with play-json
- From seq to _* in Scala
- Can't use a type projection to a recursive (f-bounded) type
- Scala Option doesn't handle null as expected
- Playframework: Testing with a server example does not compile
- N-Tuple of Options to Option of N-Tuple
- SBT: pre-applying input to inputKeys
- Observable Exception handling
- How to extract my case class from Json using Json4s?
- Find all paths from a vertex until there are no more direct successors
- Scala: validating arguments in overloaded constructors
- Supporting quotations and string substitutions together in Scala
- How is the POJO/JavaBean pattern treated in Scala?
- Return elements from array, except for repeating
- When to use countByValue and when to use map().reduceByKey()
- Process Interaction through stdin/stdout
- Restrict Construction of Scala Class
- How can I change, replace or expand a 3rd-party Enum (Java) in Scala?
- How to ... with MigLayout
- How to make a right-associative infix operator?
- How to get the properties values those that are defined in the shell (bash) script file using Scala 2.11 code?
- google-cloud-datastore java client: Is there a way to infer schema and/or retrieve results as Json?
- scala: futures and lists
- Repeatly eval T => scala.concurrent.Future[T] to a Process[?, T]
- sbt : Is there a better way of structuring large build.sbt files
- How to filter rows with column constraint in Deequ ColumnProfileRunner?
- How to order a collection with PartialOrdering?