JetBrains Rider 2021.2 Help

C++ Type Name Hints

Use this settings page to configure inlay hints for type names at variables and expressions.

General

Use compact type name presentation

Sometimes type names can be too long.

When this option is enabled, a shortened type name is displayed in the hint.

Hide if type name is evident from variable name

This option hides type name hints in cases similar to the following one:

JetBrains Rider: Inlay hints in evident cases
Show type name hints in dependent C++ code

This option lets you show type name hints in cases similar to the following one:

JetBrains Rider C++: type name hints for dependent code

Function return type after function calls

These hints will appear after functions if the next function in the chain is written in a new line:

Visibility

Use the selector to choose how inlay hints for function return type should be displayed in the editor: choose Default to apply the general visibility preference from the Editor | Inlay Hints | General page of JetBrains Rider settings, choose Show Always or Never Show to always show or hide hints, or choose Push-to-Hint to hide the hints by default but show them when you press and hold Ctrl.

Hide for single invocations and one-line method chains
Hide for the last invocation when hint is irrelevant
Join hints for sequences of method invocations with the same return type
Mode

Implicitly typed variables

This kind of hints is available for variables with automatically deduced type, which use the auto or decltype(auto) type specifiers.

JetBrains Rider C++: type name hints for auto variables
Visibility

Use the selector to choose how type name hints for implicitly typed variables should be displayed in the editor: choose Default to apply the general visibility preference from the Editor | Inlay Hints | General page of JetBrains Rider settings, choose Show Always or Never Show to always show or hide hints, or choose Push-to-Hint to hide the hints by default but show them when you press and hold Ctrl.

Hide if type of variable is evidentThis option is enabled by default so that hints of this kind will not appear where they are not necessary for understanding the type. For example, when the initializer is a constructor call, a constant, or an explicit cast.

Function return types in function declarations

Use the Visibility selector to choose how type name hints in function returns should be displayed in the editor: choose Default to apply the general visibility preference from the Editor | Inlay Hints | General page of JetBrains Rider settings, choose Show Always or Never Show to always show or hide hints, or choose Push-to-Hint to hide the hints by default but show them when you press and hold Ctrl.

Lambda return types

Use the Visibility selector to choose how type name hints in lambda expressions should be displayed in the editor: choose Default to apply the general visibility preference from the Editor | Inlay Hints | General page of JetBrains Rider settings, choose Show Always or Never Show to always show or hide hints, or choose Push-to-Hint to hide the hints by default but show them when you press and hold Ctrl.

Last modified: 12 July 2021