Improving scala code compilation times in Intellij IDEA

Iam in the process of learning Scala using IntelliJ IDEA 10.0.x with the Scala plugin, and I found that compiling Scala takes more than 10 seconds. I know that it is possible to enable fast code compilation (FSC) in Scala, but I do not know how to configure this in IDEA, is there an option available.

+4
source share
2 answers

After creating the scala project in IDEA, run Run / Edit Configurations:

  • Press <+ li>
  • Select scala Compilation Server and enter a name for this configuration.
  • Now click run.
+2
source

After reading β€œ Why does IntelliJ IDEA compile Scala so slowly ? , I would rather use IntelliJ IDEA with SBT :

  • idea-sbt plugin : to use the SBT Console tool window to directly enter SBT commands.

Please note that sbt cannot use fsc either (interactively).

+6
source

Source: https://habr.com/ru/post/1343583/


All Articles