# Scala code editing

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

In addition to the Scala-specific capabilities described in this section, IntelliJ IDEA provides a range of general IDE features that work with Scala code in the same way they work with other supported languages:

* [Basic code completion](auto-completing-code.html) and [Postfix completion](postfix-code-completion.html) to reduce the amount of typing and speed up your work.

* [Smart keys](settings-smart-keys-scala.html) to make typing and editing code faster.

* [Live templates](using-live-templates.html) to help you avoid repeatedly typing common code patterns.

## Indentation syntax support

Scala 3 introduces indentation-based syntax instead of traditional braces `{}`. IntelliJ IDEA provides a dedicated option to control whether the IDE formats Scala code in this syntax.

### Indentation syntax for new projects

When creating a [new Scala
project](get-started-with-scala.html#new-scala-project), you can select Scala 3.x as the project SDK. An additional option, Use significant indentation syntax (Optional Braces), appears under the version selector.

Enable this option if you want to use Scala 3 significant indentation syntax in your project. IntelliJ IDEA will then recognize and process your code according to the Scala 3 syntax rules, providing correct highlighting and other IDE assistance for the indentation-based syntax.

![Scala 3 Significant
Indentation checkbox in the New Project wizard](https://resources.jetbrains.com.cn/help/img/idea/2026.2/scala_indentation_syntax.png)

### Indentation syntax for existing projects

You can enable the indentation-based syntax support in existing projects written in Scala 3.

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 `Editor | Code Style | Scala`.  Open the Other tab, and the select the Use significant indentation syntax (Optional Braces) checkbox in the Scala 3 section.

![Scala 3 Significant
Indentation checkbox in Settings](https://resources.jetbrains.com.cn/help/img/idea/2026.2/scala_significant_indentation.png)

> **Note:**
> The Use significant indentation syntax (Optional Braces) option is independent from the `-indent` and `-no-indent` compiler options. Make sure your use of them is consistent with the checkbox state.

