Intellij Idea setup for Scala, clarification needed

You need to add Scala as a framework for your project.

To do this, right click on the top level directory in your project, choose "Add Framework Support..." and select Scala. Then Scala will be added as a "Facet" of your project.

Here is a good page with more info:

  • IDEA Scala Project Configuration Explained

When creating a new Scala project from the wizard IDEA can download and configure everything for you:

New Scala Project

Settings can be changed later in the Scala Facet:

facet

and in Compiler:

compiler

Libraries configuration:

compiler

scala

Code and imports completion is available from the Scala library:

completion


I got around this by downloading the Scala library from scala-lang.org, unzipping it and then pointing the project to it. It worked fine after that. But of course, I'm an eclipse guy so perhaps someone else might be able to give you a better automated (?) solution. Here's what my project looks like in Module Settings -> Libraries:

enter image description here