# Code highlighting

> **TL;DR**
> Required plugin: Scala: [how to install](get-started-with-scala.html#scala_plugin)

You can configure code highlighting options for Scala code in settings.  Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) to open settings and then select `Languages & Frameworks | Scala | Editor`.

IntelliJ IDEA with Scala Plugin offers two modes of error highlighting: Built-in and Compiler.

![Scala Highlighting](https://resources.jetbrains.com/help/img/idea/2026.2/scala_highlighting.png)

## Built-in highlighting

Built-in highlighting is the default highlighting mode. It offers more features and faster feedback and is overall more lightweight.

![Scala Built-in Highlighting](https://resources.jetbrains.com/help/img/idea/2026.2/scala_builtin_highlighting.png)

When Built-in highlighting is selected, the Incremental highlighting option becomes available. Enable this option to limit syntax highlighting to the visible area of the editor. This may improve performance and reduce CPU, memory, and battery usage, especially when editing large or complex files.

> **Note:**
> Use Built-in highlighting if the code doesn't compile.
>
>
>
> If your code does not compile successfully, Compiler highlighting may result in reduced performance. In this case, consider using Built-in highlighting instead, optionally with Incremental highlighting enabled. If you encounter false-positive errors or warnings, disable the Type-aware option.

## Compiler-based highlighting

Compiler highlighting provides more accurate error and warning reporting because it uses the Scala compiler. However, it is slower, consumes more resources, and does not support some IntelliJ IDEA features, such as inspections, quick-fixes, and type diffs. Unless you encounter a significant number of false positives, Built-in highlighting is recommended.

![Scala Compiler-based Highlighting](https://resources.jetbrains.com/help/img/idea/2026.2/scala_compilerbased_highlighting.png)

When the Compiler highlighting is selected, the following options become available:

* Disable built-in inspections: some inspections provided by the Scala plugin overlap with compiler diagnostics or add only a small amount of additional information. Disabling these inspections can help improve editor performance.

* Use types reported by the Scala compiler: use type information provided by the compiler for type inference in macros and in `transparent inline` methods.

## Other highlighting options

You can find more highlighting options in the Advanced section on the page `Languages & Frameworks | Scala | Editor`:

| Title | Example |
| --- | --- |
| Highlight implicit conversions | ![Highlight: Implicit conversion](https://resources.jetbrains.com/help/img/idea/2026.2/scala_highlighting_implicit_conversion.png) |
| Show hints on type mismatch | ![Highlight: Type mismatch](https://resources.jetbrains.com/help/img/idea/2026.2/scala_highlighting_type_mismatch.png) |
| Show hints if no implicit arguments found | ![Highlight: No implicit argument found](https://resources.jetbrains.com/help/img/idea/2026.2/scala_highlighting_no_implicit_found.png) |
| Show hints if ambiguous implicit arguments found | ![Highlight: Ambiguous implicits](https://resources.jetbrains.com/help/img/idea/2026.2/scala_highlighting_ambiguous_implicits_found.png) |
| Highlight arguments to by-name parameters | ![Highlight: By-name parameters](https://resources.jetbrains.com/help/img/idea/2026.2/scala_highlighting_byname_parameters.png) |
| Custom aliases are Exports/Definitions | ![Highlight: Exports/Definitions](https://resources.jetbrains.com/help/img/idea/2026.2/scala_highlighting_exports.png) |
| Collection type highlighting | ![Highlight: Standard collections](https://resources.jetbrains.com/help/img/idea/2026.2/scala_highlighting_collections.png) |

