ReSharper 2020.3 Help

C++ Other Hints

ReSharper | Options | Environment | Inlay Hints | C++ | Other

Use this settings page to configure other kinds of inlay hints in C++.

Aggregate initialization

Parameter name hints show the names of the members you are initializing and help disentangle complex aggregate initializations in C++17 and later:

ReSharper C++: parameter name hints in aggregate initialization

Use the Visibility selector to choose how inlay hints for aggregate initialization 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.

Array index

Array index hints can help with multidimensional initialization:

ReSharper: Inlay hints. Array elements.

Use the Visibility selector to choose how inlay hints for array index 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.

Namespace name

A large project can have any number of namespaces, which sometimes are nested or even do not have a name. In such cases, hints of this kind will indicate what namespace is being closed by the current brace:

ReSharper: Inlay hints. Namespaces.

Use the Visibility selector to choose how inlay hints for namespaces 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.

Preprocessor directive

Preprocessor directive hints help you quickly understand how conditional inclusions (#ifdef, #ifndef, #if, #endif, #else, and #elif) correspond to macro definitions:

ReSharper: Preprocessor directive hints in C++

Use the Visibility selector to choose how inlay hints for preprocessor directives 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: 10 March 2021