Child pages
  • Scala Interpreter Console Support
Skip to end of metadata
Go to start of metadata

You can use Scala Interpreter directly from IntelliJ IDEA via dedicated Scala Console. It automatically picks up your project classpath, and you can test stuff in your code in the interpreter, which is quite handy.

To run Scala Console you only need to press Ctrl+Shift+D on any Scala file, or inside of any Scala file context menu.

With everything else, this console also has History feature - you can use Alt+Up, or Alt+Down to see the recently added lines. All Scala Console commands (like :quit or :help) also work here. Just as any other configuration, Scala Console you can be run with additional parameters (like VM options, additional Console commands, etc.).

Icon

In Diana, code completion is available in the Scala Console. In Maia, it is not.

  • No labels

3 Comments

  1. Anonymous

    would be nice to have a command that loads the file that is currently edited.

  2. Anonymous

    Do I have to do anything special to access classes and objects from my project?
    Simply using them doesn't work (wink)

    I'm using Maia-93.83 and Scala 2.7.7

  3. Alt-down does not scroll the history for me. Instead, it drops down a selection of the active run sessions to choose from