Kotlin
Last modified: 10 August 2022Settings/Preferences | Editor | Inlay Hints | Kotlin
Parameter hints
Controls whether hints should appear for function and constructor arguments.
data class User(val id: Int)
fun printSum(a: Int, b: Int) = println(a + b)
fun hintsDemo() {
val u = User(0) // calling constructor
printSum(1, 1) // calling function
}
Use Exclude list to disable parameter inlay hints for specific methods.
Types
Property types | Controls whether hints should appear when assigning a value to a property whose type is not explicitly specified.
|
Local variable types | Controls whether hints should show the type when a local variable, whose type is not specified, is assigned some value. The type is not shown for constants.
|
Function return types | Controls whether hints should appear for functions with inferred return types.
|
Function parameter types | Controls whether hints should appear for lambda parameters without a type.
|
Lambdas
Return expressions | Controls whether hints should appear for multiline lambdas that return a value. This is useful in complex constructs, where it is easy to forget that a lambda is returning something.
|
Implicit receivers and parameters | Controls whether hints should appear for lambdas' implicit receivers.
|
URL path inlay
Controls whether an inlay hint should appear at URL mappings allowing you to quickly access the related actions.

Thanks for your feedback!