ReSharper 2022.1 Help

C++ Type Name Hints

ReSharper options: Environment | Inlay Hints | 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. You can hover the mouse over the hint to see the full type name.

Hide if type name is evident from variable name

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

ReSharper: 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:

ReSharper C++: type name hints for dependent code

Function return type after function calls

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

Visibility

Use the selector to choose how inlay hints for method return type should be displayed in the editor : choose Default to apply the general visibility preference from the Environment | Inlay Hints | General page of ReSharper options , 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.

ReSharper 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 Environment | Inlay Hints | General page of ReSharper options , 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 evident

This 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 Environment | Inlay Hints | General page of ReSharper options , 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 Environment | Inlay Hints | General page of ReSharper options , 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: 24 May 2022