Can Android Studio display methods parameters in call?

612 Views Asked by At

Android Studio seems to be able to show the parameter name in a methods call if it is a direct string, but not when a variable is passed. Is there a way to always enable this for all parameters?

String string = "Stringvalue";
    myFunc("Stringvalue"); // Parameter is shown as myFunc(parameterName: "Stringvalue"); (see screenshot)

    myFunc(string); // Parameter is not shown

Code example

Edit: After @MarioBerrios linked me the options emtied the blacklist and turned off all hiding options in File -> Settings -> Editor -> General -> Appearance:

Preferences menu

Still the same - myFunc(variable) doesn't show the parameter while myFunc("exampleString") does.

1

There are 1 best solutions below

2
MarioBerrios On

You can configure the hints in File -> Settings -> Editor -> General -> Appearance and hit the "Configure" button beside "Show parameters name hints" checkbox.

You can also use the command "Parameter info" (Ctrl + P) to show it