Play provides a command to simplify IntelliJ IDEA configuration. To transform an existing application to a valid IntelliJ IDEA module, use the idealize command:
# play idealize myApp
To create a single module project, do the following in IntelliJ IDEA.
play new
command to create the Play project.play idealize
command to create an IntelliJ IDEA module..ipr
file.To add a run configuration:
play.server.Server
.-Dapplication.path="."
.Make
if exists.To run Play in test mode in IntelliJ:
$PLAY_HOME/modules/testrunner/lib/play-testrunner.jar
and click OK.Do not commit the .iml files when you work in a team!
The generated configuration files contains absolute references to your framework installation. These are specific to your own installation. When you work in a team on the same application, each developer must keep his IntelliJ IDEA configuration files private.