JetBrains Rider 2021.1 Help

C# Other Hints

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

Code annotations for parameter declarations

This kind of hints shows JetBrains code annotation attributes used in base classes on overriding and implementing members:

JetBrains Rider: Inlay hints. code annotations

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

Missing constructs

You can display missing returns in functions and missing breaks in switch statements using inlay hints. This lets you immediately understand what exactly is missing:

JetBrains Rider Inlay hints: missing return

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

Implicit dispose points

You can use inlay hints to see places where resource variables are disposed:

JetBrains Rider Inlay hints: disposed resource variable

Use the Visibility selector to choose how inlay hints for implicit dispose points 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: 08 March 2021