Search code examples
eclipsescalascala-ide

Why Scala `var` is highlighted red in Eclipse


Does anyone know if the subj is expected or IDE is trying to warn me about something?

Eclipse screenshot

My Eclipse is Mars Release (4.5.0)
Scala IDE for Eclipse 4.3.0.v-2_11-201512011536-499c89a


Solution

  • Search for Syntax Coloring inside of Preferences window in Eclipse.

    Example for Java:

    enter image description here