Scala compilation on the fly in IntelliJ IDEA
I am using IntelliJ IDEA with scala plugin. It seems that it is not possible to customize the display of compilation errors on the fly. For example, when you write code in java, you might see compilation errors right after editing the file. How do I configure this function for scala?
source to share
There are two possibilities for automatic display of errors in Intellij IDEA:
Code highlighting
Most errors will be highlighted with a reddish line and an error mark on the right.
This can be configured in the settings. You can find the relevant options under Settings
→ Editor
→ Color & Fonts
→ General
, in the right list select Error
, now you can change the appearance of the error highlighting or enable / disable it,
As mentioned in this answer by fooobar.com/questions/1990448 / ... it is also possible that type matching highlighting is off. To enable it, click on the yellow square it should contain [_]
, in the lower right corner. If type recognition is enabled, it should be green and contain [T]
.
Automatic creation
If you want all the listed errors, you can activate Make project automatically
in the settings. It is located at Settings
→ Compiler
.
This will show all errors in the Problems section immediately after editing.
source to share