Java – How do I display parameter type labels in Android Studio?

How do I display parameter type labels in Android Studio?… here is a solution to the problem.

How do I display parameter type labels in Android Studio?

I want android studio to display a label next to the method’s argument, such as whether it’s context or attachToRoot, as shown in the image below.

/image/2gWuU.png

How do I enable this option in Android studio?

Solution

This is a feature of Android Studio 3.0 and is enabled by default. It’s still in beta, but fairly stable. You can < a href="https://developer.android.com/studio/preview/index.html" rel="noreferrer noopener nofollow">try it now .

There are settings and configurations there

File -> Settings -> Editor -> General ->

Appearance -> Show parameter name hints

Related Problems and Solutions