How do I disable the variable type hint for a 'var' declared variable in Rider?

Viewed 2549

In Jetbrains Rider the type of a 'var' declared variable is shown as hint by default. I don't want that. How can I get rid of it?

enter image description here

3 Answers

Disable Parameter Name Hints as shown below:

Disable Parameter Name Hints

It is not in Inlay settings but under "Syntax Style".

enter image description here

In JetBrains Rider 2022.2, I found the checkbox Enable Inlay Hints in .NET languages under
Settings --> Editor --> Inlay Hints.

Screenshot of the Settings dialog box in JetBrains Rider 2022.2, displaying the path Editor --> Inlay Hints --> checkbox 'Enable Inlay Hints in .NET languages'

That solved it for me.

Related