Add Remaining Branches in Kotlin

Use quick intentions to generate code automatically and save you typing.

When a Kotlin expression requires us to cover all the possible options for a parameter, we can use ⌥⏎ (macOS) / Alt+Enter (Windows/Linux), to generate all the branches automatically.

Interested in Java Development?

call to action image

You can add call arguments the same way!

Learn More


Related Resources

Add Names to Call Arguments in Kotlin
Add Names to Call Arguments in Kotlin
Use quick intentions to add names to call arguments.
Put Kotlin Arguments on Separate Lines
Put Kotlin Arguments on Separate Lines
Use quick intentions to improve the readability of your code by putting arguments on separate lines.
Remove Explicit Type in Kotlin
Remove Explicit Type in Kotlin
Use quick intentions to remove explicit types.