This is something I need quite often for Coursera because I can’t stand Eclipse. Really, I can’t. I suppose there’s no accounting for taste, right, so don’t think I’m prejudiced or anything. I just feel more comfortable doing the course if there’s at least something familiar in the environment.
Anyway, these steps are something I seem to need each time when starting a new course, so I’ll just leave them here.
(Courtesy of this forum author – Sebastian Stein.)
- Test SBT and download basic scala dependencies.
Download the quickcheck assignment and extract it to some folder.
In this folder, issue the following command on a command line:
This will download a large set of core scala dependencies.
Exit the command line again.
- Install sbt-idea plugin.
The sbt-idea plugin allows generating IDEA project files from sbt. Note, this is a plugin for SBT, not for IDEA!
- Generate project files.
Go to the folder, where you extracted the quickcheck assignment.
Open a command line.
After completion, close the command line.
- Install Scala and SBT plugin in IDEA.
On the start screen, click “Configure”.
Now, click “Plugins”.
Type “scala” in the search field.
Select “SBT” and “Scala” plugins in the search results and install them.
Create a folder .sbt/plugins if it doesn’t exist already in your $HOME folder.
In the plugins folder, create a file build.sbt.
Add the following line to the file:
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.2")