10
votes

I'm recently playing with Play 2.0. I found in the docs that it can generate a project for Eclipse, Idea or Netbeans. However it seems this works only for pre-2.0 versions.

How do you configure a Play 2.0 project for IntelliJ Idea, or what other IDE would you recommend?

8

8 Answers

8
votes

At the time of the question Play 2.0 was still in beta and lacked some support and documentation. Recently they've released methods to automatically generate the files you need to import your project into some IDE.

Do the following:

  1. Create your project
  2. Go to the folder of the project
  3. Run play to open the sbt console
  4. Run eclipse to create an Eclipse project
  5. Run idea to create an IntelliJ Idea project

Enjoy hacking! :)

4
votes

Play2.0 is still in active development. IDE support will be available, but not quite yet. It is worth keeping an eye on the nightly builds as there have been discussions about the IDE support recently, so it may be coming soon!

2
votes

If you build the git-Version you can use the eclipsify-command (I assume idealize will be there too). Another approach is to use sbt-eclipse. Unfortunately the project is under heavy development too. The stable version doesn't work under windows, but the head version does.

2
votes

I voted for Intellij IDEA 12.
It support play 2.0 natively.

1
votes

I'd recommend intellij IDEA 12:

  • it has syntax highlighting in scala templates; you can go from a controller action to a corresponding view with only one click;
  • also you can compile your project right from IDE and it will start a browser for you;
  • and you still have all the other benefits of this IDE such as refactoring which works for scala too.

As other guys have mentioned already you simply type 'play idea' in your command console and you can open your project from the IDE.

1
votes

I personally use SublimeText 3 for developing with Play. There is a plugin for that available here which enables syntax highlighting for all the filetypes used in play. It seems to be for SublimeText 3 but I have not yet encountered any problems with Sublime 3. If you have Package Control installed this plugin is even in the default repositories.

0
votes

Using 2.0.3, I was able to [finally] get this all to work by running play idea, and then just opening that directory in IDEA (rather than importing it). If I tried to set it up myself, the classpath never seemed to be working.