Add Names to Call Arguments in Kotlin

Use quick intentions to add names to call arguments.

Kotlin has support for named parameters which IntelliJ IDEA can add automatically. We can use ⌥⏎ (macOS) / Alt+Enter (Windows/Linux), before the first parameter to add names to call arguments. You can use the same shortcut again before one argument to add names from that parameter position, or just for that parameter.

Interested in Java Development?

call to action image

You can add remaining branches the same way!

Learn More


Related Resources

Add Remaining Branches in Kotlin
Add Remaining Branches in Kotlin
Use quick intentions to generate code automatically and save you typing.
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.