Why NetBeans 11 shows parameter name beside value while calling a method?

4k Views Asked by At

Here is a picture

On line 11 the foo() method is called and beside the parameter value it shows the parameter name which i don't want and also there is a weird pink box along with the parameter name. How do i get rid of this. Tried many things on settings and found no solution. Any help is appreciated.

2

There are 2 best solutions below

0
Gilberto On

In menu:

View | Show Inline Hints

0
andrewJames On

These are 2 separate things:


(1) Inline Hints

In NetBeans 12.2 (and I am I assuming it's the same for your version) there is an option from the main menu:

View > Show Inline Hints

enter image description here

This causes those items in a smaller font to be displayed/hidden, such as your data: hint.


(2) Autocompletion Hints

The red/pink borders are related to text which has been auto-completed for you by NetBeans. I believe if you just type somewhere else then that border disappears (because you have implicitly "accepted" the autocomplete suggestion).