Compilation on startup in IntelliJ

When I run the test in IntelliJ, it does not compile the file at first. Is this normal behavior? I know that I can use eclipse mode to automatically compile on save, but it seems logical to auto-compile before running the file. Is this possible in IntelliJ?

+4
source share
2 answers

I made a macro to save and compile, mapped to CMD+s

A macro has also been made to save, compile and run, mapped to CMD+r

EDIT:

At this link: http://blog.jetbrains.com/scala/2012/12/28/a-new-way-to-compile/

Using the SBT increment type, rather than IDEA, will better detect changes to scala files and functions, as we expect.

Settings โ†’ Build โ†’ Compiler โ†’ scala

+2
source

In the configuration screen there is a group of parameters "Before starting", which has "Make" as one of the parameters. If this parameter is set, the entire module / project will be rebuilt before starting.

If you want this parameter to be saved for all future configurations automatically created by IntelliJ, check it in the corresponding configuration in the "Default" group.

+6
source

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


All Articles