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

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