JetBrains Rider 2020.2 Help

Inlay Hints

File | Settings | Editor | Parameter Name Hints for Windows and Linux

JetBrains Rider | Preferences | Editor | Parameter Name Hints for macOS Ctrl+Alt+S the Settings/Preferences icon

On this page of JetBrains Rider options, you can configure inlay hints for C#, VB.NET.

Note that settings on this page do not affect parameter name hints in JavaScript, TypeScript, and SQL, which you can configure under the Editor | Inlay hints page of JetBrains Rider settings Ctrl+Alt+S.

Show inlay hints Lets you either enable or disable the entire Inlay Hints functionality.

Parameter Name Hints

Show parameter name hints Lets you enable or disable parameter name hints .
Hide for non-literals Hides parameter name hints for arguments that are variables, resources, expressions, or invocations allowing you to configure exceptions for specific kinds of non-literal arguments.
Hide for builder-like methods Hide parameter name hints for methods similar to methods of System.Text.StringBuilder, which return a modified object of their containing class. Names of such methods normally make clear the purpose of their parameters.
Hide if method parameters only differ by numbered suffix Hides parameter name hints when calling methods with signatures similar to
void DoSomething(int arg0, int arg1, int arg2, int arg3) {/*...*/}
Hide if intention of first parameter is clear from method name Hides parameter name hint on the first argument when calling methods with signatures similar to
void SetExtension(string extension, object next) {/*...*/}
Hide if intention of argument is clear from usage For methods with signatures similar to
void DoSomething(int value, object context) {/*...*/}
hides the value parameter name hint if the method is called like so
DoSomething(myValue, context: null);
Hide if method is annotated as 'StringFormatMethod' This option hides parameter name hints for String.Format-like methods marked with the StringFormatMethodAttribute.
Show code annotations hints on parameter declarations

Use this option to show JetBrains code annotation attributes used in base classes on overriding and implementing members:

JetBrains Rider: Inlay hints. code annotations
You can configure a list of method patterns for which the parameter name hints will be always hidden, independently of other preferences.

Patterns are matched against fully qualified method name, parameter count, and parameter names. For example:

  • System.Math.* matches all methods whose FQN starts with System.Math

  • System.Math.*(*, *) matches all methods from System.Math namespace with two parameters

  • (*info) matches all single-parameter methods where the parameter name ends with info

  • (key, value) matches all methods with parameters key and value

  • Put(key, value) matches all Put methods with key and value

Type Name Hints

Use compact type name presentation

Sometimes type names can be too long. For example, an anonymous type with a few fields will look like this:

JetBrains Rider: Inlay hints. long type name

When this option is enabled, a shortened type name is displayed in the hint.

JetBrains Rider: Inlay hints. compact type name
Show method return type name hints

Use this option to enable or disable type name hints for return types of methods in a call chain. These hints will appear after methods if the next method in the chain is written in a new line:

JetBrains Rider: Inlay hints return type in call chain

Use child options to configure exceptions and presentation for this kind of hints.

Show type name hints for implicitly typed variables

Use this option to show or hide type name hints for vars.

The child option Hide if type of variable is evident is enabled by default so that hints of this kind will not appear where they are not necessary for understanding the type. To learn more, which cases JetBrains Rider considers evident, see Use 'var' when evident: what is considered evident?.

Show type name hints for pattern matching expressions

Use this option to show or hide type name hints for vars, recursive patterns, and tuples in C# pattern matching expressions. For example:

JetBrains Rider: Inlay hints. pattern matching
Show type name hints for lambda expression parameters

This option enables type name hints after parameters of lambda expressions.

JetBrains Rider: Inlay hints. lambda expression parameter

The child option Hide if types of parameters are evident is enabled by default so that hints of this kind will not appear where they are not necessary for understanding the type. To learn more, which cases JetBrains Rider considers evident, see Use 'var' when evident: what is considered evident?.

Show type name hints for query range variables in LINQ queries

This option enables type name hints in LINQ expressions.

JetBrains Rider: Inlay hints in LINQ expressions
Hide if type name is evident from variable name This option hides parameter hints in cases similar to the following one:
JetBrains Rider: Inlay hints in evident cases

XAML Inlay Hints

Show implicit attribute names

Whether to show inlay hints for implicit attribute names, for example:

JetBrains Rider: Inlay hints in XAML for implicit attribute names
Show thickness argument hints

Whether to show inlay hints for Thckness values (in the arguments of Margin, Padding, and so on) to see the correspondence between arguments and values:

JetBrains Rider: Inlay hints in XAML for margins and padding
Show missing Grid.Row/Column hints

Whether to show hints for missing Grid.Row and Grid.Column arguments:

JetBrains Rider: Inlay hints in XAML for missing Grid.Row/Column attributes
Show implicit attribute names

Whether to show hints for DataContext types in bindings:

JetBrains Rider: Inlay hints in XAML for DataContext
Last modified: 22 June 2020