,

ReSharper 2023.3 Help

C# Interceptor Hints

ReSharper options: Environment | Inlay Hints | C# | Interceptor Hints

Use this settings page to configure Inlay hints for C# interceptors in C#.

The [InterceptsLocation] annotation on the interceptor method has a hint that allows you to navigate to the intercepted call:

ReSharper: Inlay hint and navigation action for an intercepted method

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

Intercepted calls

Inlay hints will help you spot intercepted calls, with the additional ability to navigate to the interceptor method with Alt+Enter or with Ctrl+click on the hint icon:

ReSharper: Inlay hint and navigation action for an intercepted method

Use the Visibility selector to choose how inlay hints for [MustDisposeResource] annotations 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.

Do not show hints for calls intercepted by the following source generators:

Use this area to list fully qualified names of source generators to ignore interceptors produced by them.

Last modified: 29 February 2024