IntelliJ IDEA
 
Get IntelliJ IDEA

Scala worksheet, Scala REPL and Ammonite

Last modified: 26 May 2024

You can quickly evaluate and run Scala code using a Scala worksheet, Scala REPL, or Ammonite.

Scala REPL in IntelliJ IDEA and Scala worksheets both use Scala REPL from the Scala compiler. So, you can use a Scala worksheet instead of Scala REPL to evaluate expressions.

Since in IntelliJ IDEA Scala worksheet and Ammonite files have the same file extension .sc, you need to let IntelliJ IDEA know how to treat such files in your project.