I'm can't figure out how to get IntelliJ IDEA to "play nice" with Play. I'm wondering how/if you can get it to automatically recognize dependencies in Build.scala and import them, just like IDEA can do with pom.xml entries for Maven projects.
As it is now, I have to manually keep my IDEA project and Build.scala in sync, which is kind of a pain.
In the Settings/Preferences dialog ( Ctrl+Alt+S ), click Editor | General | Auto Import. Enable the Optimize imports on the fly option and apply the changes.
Select how IntelliJ IDEA should process references to missing classes and methods in pasted blocks of code: All: import statements will be added automatically for all missing classes and methods found in pasted blocks of code. Ask: IntelliJ IDEA will prompt you to select which classes and methods you want to import.
Quickly remove any unused imports and more. With the Optimize imports action (Ctrl+Alt+O), you can quickly remove any unused imports, merge imports from the same module, and optionally sort the import statements.
To avoid IntelliJ IDEA replacing imports with * , you need to configure the Class count to use import with '*' and Names count to use static import with '*' preferences: Go to Preferences > Editor > Code Style > Java.
IntelliJ is working on sbt support (like they have for Maven). Until then just re-run play idea
when you change your dependencies.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With