Integrates Intellij IDEA with Simple Build Tool (SBT) to build Scala projects easily and quickly.
The plugin works with the 0.7 - 0.13 series of SBT.
It is recommended to use this in combination with
sbt-idea to synchronize the IDEA module structure with
the SBT build.
Configure VM Parameters under
Settings -> SBT. (This is only visible after you load a project.) Starting with version 1.4.0 of the plugin, you are not required to specify the path of
sbt-launch.jar, as the plugin ships with the 0.13.0 launcher, which is backwards compatible with all previous SBT versions. For repeatable builds, it is strongly recommended to explicitly specify the desired version of SBT in each of your SBT projects by adding
You can use SBT interactively, including running watched command like
~compile. Currently there is only limited completion (CTRL-SPACE will complete
test:compile, and a few other options). Console history is available with the up and down arrows.
You can replace the built in Make from IntelliJ with SBT by adding a "Before Launch" action to Run Configurations.
It is useful to do this for the Default Run Configuration for
For example, here we set the default Specs2 Run Configuration to build with SBT. (The SBT command
copy-resources which is typically what you want to use a a pre-run step.
The SBT Console will pop up showing hyperlinked errors if the compile fails during a "Before Launch" build.
After clicking following one of the links, use
CTRL-ALT-UP/DOWN to scroll through the list of errors.
If this option is selected, the build is run in the active module for the Run Configuration. This can avoid needless recompilation modules unrelated to the class that you are running.
Last edited by Jason Zaugg,