Getting Started with Scala in IntelliJ IDEA
Before you perform the tutorial's steps we recommend you to watch the video with a quick overview of Scala support in IntelliJ IDEA.
1. Install plugin
Before you create your first Scala application make sure Scala plugin is installed and enabled via Settings → Plugins.
2. Create Scala project with project wizard
Open Project Wizard and select Scala template. Specify home directory for Scala. If you don't have it, you can get it via Download button.
It will be easier next time to create applications if you select to make global libraries.
3. Check project libraries
Open Project Structure and check the project libraries. Here you can configure additional libraries, e.g. ScalaTest or any others.
Check compiler settings
In Scala Facet settings you can check Compiler options.
4. Create object
The easiest way to create Scala file, worksheet or script is to use Ctrl + N shortcut from Project View or Navigation Bar.
Choose between class, object and trait with Up and Down arrows.
5. Run application
The fastest way to run the code at cursor is to use Ctrl + Shift + F10 shortcut.
Alternatively you can use the context menu.
28 Comments
Anonymous
Unfortunately Check RegExp floating menu position that should appear after the combination of Alt+Enter is hit (with the cursor on the regexp) does not work for me (IntelliJ Idea 13.1.3 Ultimate on Ubuntu 13.10) in Scala sources (it does work if I edit Java files though).
Anonymous
Correct! It doesn't work for me either (Intellij Idea 13 Ultimate on OSX 10.9) when editing scala source. Please fix it!
Anonymous
The article is quite out-of-date, could you rewrite it?
Anonymous
Anonymous
Anonymous
Anonymous
Anonymous
Anonymous
Anonymous
Doesn't work with Intellij Idea 14 -- can you record this video for v14?
Anonymous
This is great if you are on IntelliJ 12. How about keeping up to date with IntelliJ 14? The irony is that I upgraded from 12 to 14 so to have better scala support :(
Anonymous
This IDE is frustrating. The videos are for an old version of UnintelliJ.
I'm going back to Eclipse.
Anonymous
http://stackoverflow.com/questions/28203606/why-does-idea-mark-certain-parts-of-play-code-red
Anonymous
This is obsolete, i can't make scala work on IDEA 14
Anonymous
Been using IntelliJ for years and can't get Scala working on Intellij 14 to save to my life. Please provide an updated guide for version 14.
Anonymous
Anonymous
Anonymous
Anonymous
Anonymous
JetBrains needs to clean out their web site. This tutorial is for an old version of IDEA. Look for a newer one. For example, https://confluence.jetbrains.com/display/IntelliJIDEA/Play+Framework+2.0. Even that could use an update.
Anonymous
A new document Getting Started with Scala in IntelliJ IDEA 14.1 can be refered.
Anonymous
These videos are very out of date, useless
Anonymous
Anonymous
Anonymous
Anonymous
Anonymous
Anonymous