I've enrolled on Functional Programming Principles in Scala class at Coursera and it seems the official IDE for the class is Eclipse. However, I started to hate it only after a few hours of using it because it kept freezing and I had to force quit it over and over.
Since I am a fan of Jetbrains IDEs (I use both RubyMine and PhpStorm) I wanted to give IntelliJ a shot. Fortunately, IntelliJ Community Edition, which is free, supports Scala through a plugin, but it was a little tricky for a beginner to see my first Scala "Hello, World!" running. Thanks for the FP class forum members, I could finally figured out how to do. Here I would like to share.
Install Scala and SBT
Setting up IntelliJ for a Scala sbt project
The instruction below is copied from a FP class forum thread and is extremely useful.
- Download IntelliJ 11.1.3 from http://www.jetbrains.com/idea/
- Install the latest scala plugin from the plugins manager dialog. Also make sure to go into Project Structure and select your JDK.
- Add the following lines to
- Build the project files for Idea:
- open up IntelliJ and do Open Project and open the top level directory
- Click the yellow [ T ] box in the lower right corner to turn on type-aware highlighting for scala.
- Functional Programming Principles in Scala: Setting up IntelliJ from the Guardian's developer blog
- https://class.coursera.org/progfun-2012-001/forum/thread?thread_id=54 see Dhananjay Ragade's comment.