Table of Contents
Create application with play command
The easiest way to create a play application is to use play new command.
This will ask you to enter application name.
Now you can generate IntelliJ IDEA project for the application with play idea command. Run the command from the application directory.
Project file My first application.ipr and module file My first application.iml generated now.
Open project and module settings
Open My first application.ipr file with IntelliJ IDEA and check module's settings in File → Project Structure. You will see that the play libraries are attached to the module.
Open play console
Once libraries attached to the project, Play support is enabled. Now you can open Play Console by Tools → Play with Playframework. Use Ctrl+ Shift+ Space for commands suggestion.
To run play application in development mode, use run command. You will see the output right in the console.
In order to debug play application you must create Remote configuration in Run/Debug Configurations by clicking Run → Edit Configurations.