Skip to end of metadata
Go to start of metadata

Redirection Notice


IntelliJ IDEA lets you run Scala Console to quickly evaluate an expression or a code selection.

1.Run Scala Console

Right-click on your Scala object and select Run Scala Console from the drop-down list.  

The Scala Conslole window opens.

2.Evaluate Code in Scala Console

You can type an expression in the console and evaluate it. You can also evaluate a code selection by sending it from the editor to the Scala console.


To see the result of the typed expression, pressCtrl+Enter.


To send the code selection to Scala Console, select the code in the editor, pressCtrl+Shift+X (for Windows) orMeta+Shift+X (for Mac).
Alternatively, right-click on the code selection and from the context menu select Send Selection To Scala Console to get the same result.


Now, you can view the selected code and its evaluation in the console.


3.Use Toolbars in Scala Console

You can use Run toolbar and Console toolbar options to rerun, stop, pause, or terminate the Scala console.


  • No labels


  1. Anonymous

    Nice work, I'd like to point out though that paste mode is broken, there is actually no way to execute the block of code using shortcut ctrl + d ... I'm using scala plugin 0.38.437

    1. Anonymous

  2. Anonymous

    Ctrl+Enter brings up Generate menu (Override methods... and Implement methods...)

  3. Anonymous

    Ctrl + Enter seems broken in 14.1

    I can't find a way to evaluate the expressions.

    1. Anonymous

      I'm facing the same issue on intellij community edition

      Build #IC 141177 - 23.03.2015

      OS : Ubuntu 14.10

    2. Anonymous

      sbt console

      can be used as a workaround

    3. Anonymous

      Same here. Tried every possible combination of modifier keys with enter.

      Version 14.1 #IU-141.177 on OS X Yosemity 10.10.1

      1. Hi there,

        it's a bug and will be fixed asap. Here is the issue .

        1. Anonymous

          It really should be patched in the older version.  Breaking the REPL is unforgivable.

  4. Anonymous

    dI notice than clojure cursive plugin I can set breackpoints in my code and when I evaluate code in my repl with these breakpoints, intellij open the debuggr and stop over these, this is a really nice feature and it's weird than cursive being a not official package has this feature and scala plugin possible implement this in future versions?

  5. Anonymous

    Try using CMND-enter on OSX

  6. Anonymous

    Reply above from July 27, 2015 works.

  7. Preferences... > Keymap > Other > Plug-ins > Scala > Execute Console Statement

    I assigned Ctl-D, same REPL.