Android Sudio's code editor doesn't show the types for lambda parameters anymore


I use to have annotation beside my instantiation block, on the right to the opening brace. It was convenient to see the type, for exemple. After I upgraded to the latest version Android Studio Rabbit 1 that isn't displayed anymore.

This is what I want with the annotation:

And this is what I got now with no type:

I have browsed in Android studio setting but i could not find how to activate it again.

0
Oct 13 at 3:56 PM
User AvatarXCarb
#android#android-studio

Accepted Answer

This can be toggled in the settings Editor | Inlay Hints.

In the tree view activate the checkbox for Lambdas -> Kotlin -> Implicit receivers and parameters:


Alternatively, if you do not know where to find the appropriate setting, you can simply place the caret where you would want the missing inlay hint to appear and press <kbd>Alt</kbd> + <kbd>Enter</kbd>. The quick fixes that are now displayed offer to directly activate the option without the need to search in the settings:

User Avatartyg
Oct 13 at 4:18 PM
0