Android Studio 3.0 parameter hints information not always visible?

前端 未结 4 1011
梦谈多话
梦谈多话 2021-02-07 09:57

Sorry, I don\'t know how this new functionality is called exactly, please look at screenshot:

So, parameter name is visible in method call. This is cool, but as you can

4条回答
  •  野性不改
    2021-02-07 10:10

    Only the primitive and some complex types show hints. You can disable it by right clicking on hint and then "Disable Hints".

    For example:

    public void myFunction(int a, boolean b, MyClass myClass)
        //do something
    }
    

    If you call:

    myFunction(10, true, new MyClass()); 
    

    Only the first two will show hints...

提交回复
热议问题