Skip to end of metadata
Go to start of metadata

See also the tutorial Getting Started with Play 2.0 to learn how to create web applications with Scala.

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 SettingsPlugins.

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.

See also the tutorial Getting Started with Play 2.0 to learn how to create web applications with Scala.

  • No labels


  1. 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).

    1. Anonymous

      Correct! It doesn't work for me either (Intellij Idea 13 Ultimate on OSX 10.9) when editing scala source. Please fix it!

  2. Anonymous

    The article is quite out-of-date, could you rewrite it?

    1. Anonymous

      Imreisspve brain power at work! Great answer!
    2. Anonymous

      Shoot, who would have thghout that it was that easy?
  3. Anonymous

    Doesn't work with Intellij Idea 14 -- can you record this video for v14?

  4. 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 :(

  5. Anonymous

    This IDE is frustrating. The videos are for an old version of UnintelliJ.

    I'm going back to Eclipse.

  6. Anonymous

    This is obsolete, i can't make scala work on IDEA 14

  7. 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.

    1. Anonymous

      This is a most useful couttibnrion to the debate
    2. Anonymous

      Shiver me timbers, them's some great intamrofion.
    3. Anonymous

      state law cheapest car insurance greatly appreciate however auto insurance affordable stands car insurance quotes moped insurance intended insurance car up-and-coming provider
  8. 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,  Even that could use an update.

  9. Anonymous

  10. Anonymous

    These videos are very out of date, useless

    1. Anonymous

      That really caterups the spirit of it. Thanks for posting.
    2. Anonymous

      I can't beevile I've been going for years without knowing that.
    3. Anonymous

      selected car insurance quotes flying mock see how cheap insurance insurers icbc directly NJ car insurance lifetime movie varies insurance quotes car road