I have seen in several presentations the feature of always showing the parameter name like is shown in the image.
How can I turn this on please?
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.
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).
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).
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
Settings > Editor > General > Appearance > Show parameter name hints Configure... > Show for non-literals in case of multiple params with the same type
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With