Convert to Expression Body

Use quick intentions to convert to use expression body syntax.

If a Kotlin method contains a single expression we can use the expression body syntax. ⌥⏎ (macOS) / Alt+Enter (Windows/Linux), removes the braces {} and allows type inference for the return type of the method.


Related Resources

Convert Concatenation To Template
Convert Concatenation To Template
Use quick intentions to convert to a template string.
Migrating from the `javax` to `jakarta` namespace
Migrating from the `javax` to `jakarta` namespace
How to transition your application from Java EE to Jakarta EE.
Presenting with IntelliJ IDEA.
Presenting with IntelliJ IDEA.
Tips & tricks to level up your presentation skills with IntelliJ IDEA.