Accepted answer

I have forked the framework and made the necessary changes to make this possible. See (note, the branch is called idea_project!)

This commit adds command ideaproj which creates Module, Project and Workspace files of a very simple structure. If you are using OS X, the command will also try to open the project in all(!) IDEA apps located at /Applications/IntelliJ\ IDEA*.app. So adjust the python script in case if you have more than one IDEA app there. Additionally, you will probably want to change the default workspace layout. Have a look at iwsTemplate.xml and modify it to fit your preferences.

Usage: run the following command in the app directory to create IDEA project files (and open them):

play ideaproj

Note, that it will overwrite existing project files! If the IDEA project is already opened at the time you run this command again, then IDEA will ask you if you want to reload the project.

I have also added the following two commits:

If you want to start using this command now, then copy files, iprTemplate.xml, and iwsTemplate.xml to your Play framework directory (to the corresponding locations!).

EDIT: I have made two more commits to fix project tree in the workspace template, so that it expands first time you open the project.


If you can create the project files as you mention, idealize generates an Idea Module file for the Play project, so it should be as simple as to integrate that Module in your project file and open the project.

If you do that, please publish it as a Module in Play, it would be handy :)

Related Query

More Query from same tag