Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show parameter name hints for C++ in CLion?

I know about Ctrl/Cmd+P to show the popup for parameters, however that's not what I am looking for.
Not this popup

I am looking for the parameter name hints (which can be found in Preferences > Editor > General > Appearance), but as I can see they are only available for TypeScript (on a C++ IDE???).
Parameter Name Hints Popup Only TypeScript

How can I enable this feature for C++?

P.S. Here is a screenshot from IntelliJ IDEA on Java. (Found on this question)

like image 994
Dan Cojocaru Avatar asked Oct 16 '17 06:10

Dan Cojocaru


People also ask

How do I enable parameter hints in Intellij?

View parameter hints in the editorOpen the Settings/Preferences dialog ( Ctrl+Alt+S ) and go to Editor | Inlay Hints | <required language>. Select Parameter hints from the list, make sure the Show parameter hints checkbox is selected, and then specify the context where you want parameter hints shown.

How do I see hints in Intellij?

Go to Settings/Preferences | Editor | Inlay Hints. Alternatively, right-click a hint and select Hints Settings.

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

Type hints for C++ were added in 2019.2. Enabled by default, disabled in Appearance -> Show parameter name hints.

like image 91
z3dd Avatar answered Nov 15 '22 09:11

z3dd