ReSharper 2020.1 Help

Analyze References window

ReSharper | Find | Optimize References…
Control+Alt+Y
ReSharper_OptimizeReferences

The Analyze references window is used to display project references when you invoke the Optimize References command. It displays unused assembly references, used assembly references with corresponding usages and pinned references.

ReSharper: Analyze references window

Window tabs

When results of the Optimize references command open in the window, they are displayed in new tabs, which show up on the left. The previously open tabs move to the right if the width of the window allows, otherwise they unload themselves saving memory - but you can always restore them by clicking the arrow that appears to the right of the tabs and clicking the required tab:

Tool window tabs

To prevent a tab from unloading, click the pin icon ThemedIcon Pin Screen Gray png next to the tab title.

Toolbar Controls

ControlNameDescription
ThemedIcon Refresh Screen Gray pngRefresh Updates window content to reflect any changes made in the code or externally.
ThemedIcon StatusAll Screen Gray pngAll Tests Show all tests in the current test session.
ThemedIcon Success Screen Gray pngPassed Tests Only show successful tests and hide all other tests.
ThemedIcon StatusFailedPassive Screen Gray pngFailed Tests Only show failed tests and hide all other tests.
ThemedIcon Ignore Screen Gray pngIgnored Tests Only show ignored tests and hide all other tests. A test is ignored if it has the corresponding attribute, or if the whole category where it belongs is ignored.
ThemedIcon ExpandAll Screen Gray png ThemedIcon CollapseAll Screen Gray pngExpand All/ Collapse All Expands/collapses all nodes in the current tab.
ThemedIcon Up Screen Gray png ThemedIcon Down Screen Gray pngPrevious/ Next
Shift+F8 / F8
Navigate to the previous/next item and scrolls through the source code accordingly.
ThemedIcon PreviewToggle Screen Gray pngShow Preview Ctrl+P Hides or shows the pane with a preview of the selected item in the position specified using the list (at the bottom or in the right part of the window).
ThemedIcon Export Screen Gray pngExport Click this button to export the data currently displayed in the window in text format , or use the drop-down selector to export the data in XML or HTML format. The Export Data dialog that appears, will help you to save the data to a file or copy it to the clipboard .
ThemedIcon Merge Screen Gray pngMerge Occurrences on the Same Line When this option is selected, occurrences on the same line are shown as a single item.
ThemedIcon RemoveAllUnusedReferences Screen Gray pngRemove All Unused References Removes all assembly references that are not used.
ThemedIcon RemoveSelectedReference Screen Gray pngRemove Selected References Removes all selected assembly references.
ThemedIcon Filter Screen Gray pngFilter Usages With this list, you can select specific kinds of usages to display - for example, declaration, invocation, parameter, method return, and so on. Click Show All Usages to enable all kinds of usages or Clear Filters to disable all kinds of usages thus hiding all usages in the current tab.
Group by Allows grouping items in the window by different categories.
Last modified: 08 May 2020