ReSharper 2018.2 Help

Call Tracking

ReSharper | Inspect | Incoming/Outgoing Calls
ReSharper_CallHierarchyShowIncomingCalls / ReSharper_CallHierarchyShowIncomingCalls

Call Tracking enables you to view and navigate through call chains in your code. ReSharper Call Tracking is a substantial improvement over Visual Studio native Call Hierarchy, thanks to support for events, interfaces, and closures.

In the hierarchy view, ReSharper uses icons to distinguish between different kinds of symbols. You can learn meanings of the icons on the Symbol Icons Schemes reference page. If necessary, you can switch between icon sets in the using the Source code symbol icons theme radio buttons on the Environment | General page of ReSharper options.

To investigate outgoing calls

  1. Place the caret at the name of a method, event, property or constructor.

  2. In the main menu, choose ReSharper | Inspect | Outgoing Calls or press Ctrl+Shift+Alt+A and choose Outgoing Calls in the Inspect This drop-down list.

  3. In the Inspection Results window that opens, you can expand the member node to run code analysis on it and to display all members called by the current member. You can also expand each of the child nodes.

    Outgoing calls in the Inspection Results window

To investigate incoming calls

  1. Place the caret at the name of a method, event, property or constructor.

  2. In the main menu, choose ReSharper | Inspect | Incoming Calls or press Ctrl+Shift+Alt+A and choose Incoming Calls in the Inspect This drop-down list.

  3. In the Inspection Results window that opens, you can expand the member node to run code analysis and to display all members that call the current member. You can also expand each of the child nodes.

    Incoming calls in the Inspection Results window

When you get a lot of calls in the call tracking results, you can hide specific calls or the whole branches of the result tree to have a clearer picture of what you are looking for.
Note that when you switch between tabs in the Inspection Results window, the hidden entries are reset.

To hide entries from the result tree

  1. Right-click on the entry that you want to hide and choose Ignore in the context menu.

  2. The entry becomes greyed out but it is still visible and searchable. Also the Show Ignored Usages ThemedIcon Ignore Screen Gray button appears on the toolbar.

  3. To hide or show ignored entries, toggle the Show Ignored Usages ThemedIcon Ignore Screen Gray button.

  4. To reset ignored entries, toggle on the Show Ignored Usages ThemedIcon Ignore Screen Gray button, right-click on a greyed-out item, and choose Undo ignore in the context menu.

This feature is supported in the following languages and technologies:

Language: C#

Language: VB.NET

Language: C++

Language: HTML

Language: ASP.NET

Language: Razor

Language: JavaScript

Language: TypeScript

Language: CSS

Language: XML

Language: XAML

Language: Resx

Language: Build Scripts

Language: Protobuf

Language: JSON

Feature is available

Feature is available

Feature is not available

Feature is not available

Feature is not available

Feature is not available

Feature is not available

Feature is not available

Feature is not available

Feature is not available

Feature is not available

Feature is not available

Feature is not available

Feature is not available

Feature is not 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.

Last modified: 19 October 2018

See Also