ReSharper 2016.1 Help

Parameter Information

ReSharper | Edit | Parameter Information

Whenever you are writing or studying a function call, ReSharper helps you view details on the allowed arguments for all overloads of the function. In a tooltip, you will see all public signatures with parameters and brief description taken from the function's XML documentation, if any.

In this topic:

Using Parameter Info

As you are typing parameters, ReSharper automatically highlights the next signature compatible with the entered parameters, and grays out inapplicable signatures.

To study alternative signatures of an existing function call, set the caret inside the function's parentheses and then press Ctrl+P or choose ReSharper | Edit | Parameter Information in the main menu.

Viewing available method signatures using the ReSharper's parameter information tooltip

When the parameter information tooltip is shown, you can press Ctrl+P / Ctrl+Shift+Alt+Space or use arrow buttons to scroll through the signature list and display summary for the currently selected signature.

Configuring Parameter Info

By default, the parameter information tooltip appears as soon as you type the opening parenthesis of a function call. If necessary, you can disable the automatic appearance or display the tooltip after a timeout using the Automatically show parameter info i preference on the Environment | IntelliSense | Parameter Info options page. If the automatic appearance is disabled, you can always show the parameter information tooltip by pressing Ctrl+P while your caret is inside the function's parentheses.

You can further configure the parameter information tooltip on the Environment | IntelliSense | Parameter Info options page in the following ways:

  • By default, available signatures are displayed in a list. If necessary, you can limit the number of signatures in the list or make ReSharper show only one signature at a time:
    To do so, use the Display all signatures at once preference.
  • By default, delegates are displayed in their original form. If necessary, ReSharper can display them in lambda syntax. To enable this behavior, select the corresponding check box.
  • IF you do not want to see the function summary information, clear the Display extended info check box.
  • By default, ReSharper displays [NotNull] and [CanBeNull] annotations. If necessary, you can hide or show all JetBrains.Annotations attributes in the function signatures using the Annotations selector.
  • ReSharper can display the parameter information tooltip either below or above the current line. To specify the desired position, open the Environment | IntelliSense | Completion Behavior options page, click Advanced and use the Parameter Info default location selector.
    Note, that even if you opt for the lower position of the tooltip, it can be shown above when the tooltip appears automatically as you type and ReSharper shows some suggestions in a code completion list at the same time. When you invoke the tooltip with the Ctrl+P shortcut, it always appears in the preferred position.

This feature is supported in the following languages/technologies:

C# VB.NET C++ HTML ASPX Razor JavaScript TypeScript CSS XML XAML RESX Build Scripts Protobuf JSON
feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available feature_available

The instructions and examples given here address the use of the feature in C#. For details specific to other languages, see corresponding topics in the ReSharper by Language section.

See Also

Last modified: 19 August 2016