The JetBrains Guide is shutting down on March 30, 2026. more...

Convert Concatenation To Template

Use quick intentions to convert to a template string.

In Kotlin, you can use ⌥⏎ (macOS) / Alt+Enter (Windows/Linux), to convert a string concatenation expression into a template string. The result is much cleaner without the '+' operator.

Related Resources

Extract Parameter
Extract Parameter
Extract code to a parameter in Kotlin.
Convert to Expression Body
Convert to Expression Body
Use quick intentions to convert to use expression body syntax.
Your First AI Agent in Kotlin
Your First AI Agent in Kotlin
Get started with Koog today!