C/C++ Aggregate Initialization Hints
File | Settings | Editor | Inlay Hints | C/C++ | Aggregate Initialization Hints for Windows and Linux
JetBrains Rider | Settings or Preferences | Editor | Inlay Hints | C/C++ | Aggregate Initialization Hints for macOS
CtrlAlt0S
note
Preferences configurable on this page are saved using the mechanism of layer-based settings.
Use this settings page to configure C++ inlay hints related to aggregated initialization.
tip
You can configure the color of inlay hints on the Editor | Color Scheme | Language Defaults settings page CtrlAlt0S — choose the Inline parameter hints | Default item.
Parameter name hints show the names of the members you are initializing and help disentangle complex aggregate initializations in C++17 and later:
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 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.
Array index hints can help with multidimensional initialization:

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 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.
You can configure a list of classes and patterns for which Aggregate Initialization Hints will be always hidden, independently of other preferences.