Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij idea - how to always show method parameter names

I have seen in several presentations the feature of always showing the parameter name like is shown in the image.

screenshot

How can I turn this on please?

like image 500
xstefank Avatar asked Nov 16 '16 09:11

xstefank


People also ask

How do I list all methods in IntelliJ?

By default, IntelliJ IDEA shows all classes, methods, and other elements of the current file. To toggle the elements you want to show, click the corresponding buttons on the Structure tool window toolbar. to show class fields. to have protected class members shown in the tree.

How do I get method definition in IntelliJ?

In IntelliJ IDEA, you can see where and how symbols, such as tags, classes, fields, methods, or functions are defined in your project. For this purpose, the IDE features the Quick Definition popup. To view definition of a symbol, select it in the editor and press Ctrl+Shift+I (or click View | Quick Definition).

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).


2 Answers

Moving xeno's comment to answer.

As of Intelij Idea 2020.1, this feature is moved to Settings > Editor > Inlay Hints and includes some more advanced options

like image 187
Smile Avatar answered Sep 28 '22 00:09

Smile


Settings > Editor > General > Appearance > Show parameter name hints Configure... > Show for non-literals in case of multiple params with the same type

like image 35
chenxi65535 Avatar answered Sep 28 '22 00:09

chenxi65535