Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA: Argument name/hint in method call

enter image description here

That gray blob right before 0. Please identify the feature, and, if possible, tell how to change the color of this hint.

I'm a fan of JetBrains IDEs, but only occasionally I use Java. Seen this feature some time ago, but totally forgot what it is :(

like image 974
Art Avatar asked Feb 02 '17 21:02

Art


People also ask

How do I show method arguments in IntelliJ?

In IDEA, clicks on the method name, press CTRL + Q to show the method signature on a pop up. Alternatively, press CTRL + P to show the available parameters.

How can see method call in IntelliJ?

on the toolbar in the Find tool window or press Ctrl+Alt+Shift+F7 . While in the Find tool window, you can also use the Preview area to check the places where the usages were found, to see a call hierarchy for methods, data flow for fields, and so on.

What are inlay hints?

Inlay hints are special markers that appear in the editor and provide you with additional information about your code, like the names of the parameters that a called method expects. Other types of hints inform you about annotations, method parameters, usages, and so on (depending on the language).


1 Answers

It is a parameter name hint. These can be disabled for that constructor with an intention (AltEnter) on the parameter itself or in Settings | Editor | General | Appearance. The color of the hint can be changed in Settings | Editor | Colors & Fonts | Language Defaults | Inline parameter hint.

like image 59
Bas Leijdekkers Avatar answered Sep 23 '22 05:09

Bas Leijdekkers