android-studioparameterskotlinandroid-studio-3.0code-hinting

Is it possible to disable hints for unnamed parameters in Android Studio?


I have a variable of function type.

var onLengthChanged: (Int?) -> Unit = {}

When I invoke the function, hint appears for parameter p1, although it was unnamed. I guess that this is an auto-generated name. It looks like this:

enter image description here

Is there any way to disable hints for auto-generated parameter names only?

According to this question: IntelliJ shows method parameter hints on usage - How to disable it it is possible to disable hints in Settings -> Editor -> General -> Appearance unchecking Show parameter name hints option. There is also "Configure..." button, but I wasn't able to find any appropriate option to disable hints in this specific case.


Solution

  • It turned out that this issue has been fixed already when I posted the question: https://youtrack.jetbrains.com/issue/KT-19216#tab=History

    Everything works fine now.