ReSharper 2016.3 Help

Analyze References window

ReSharper | Find | Optimize References…
Ctrl+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.

/help/img/dotnet/2016.3/ToolWindow_Analyze_References.png

Window tabs

When you open new results of the Optimize references command 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 with 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 choosing the desired tab:

Tool window tabs

To prevent a tab from unloading, click the pin icon /help/img/dotnet/2016.3/ThemedIcon.Pin.Screen.[Gray].png next to the tab title.

Toolbar Controls

ControlNameDescription
/help/img/dotnet/2016.3/ThemedIcon.Refresh.Screen.[Gray].png Refresh Updates window content to reflect any changes made in the code.
/help/img/dotnet/2016.3/ThemedIcon.ExpandAll.Screen.[Gray].png /help/img/dotnet/2016.3/ThemedIcon.CollapseAll.Screen.[Gray].png Expand All/ Collapse All Expands/collapses all nodes in the current tab.
/help/img/dotnet/2016.3/ThemedIcon.Up.Screen.[Gray].png /help/img/dotnet/2016.3/ThemedIcon.Down.Screen.[Gray].png Previous/ Next Shift+F8/F8 Navigate to the previous/next item and scrolls through the source code accordingly.
/help/img/dotnet/2016.3/ThemedIcon.PreviewToggle.Screen.[Gray].png Show Preview Ctrl+P Hides or shows the pane with a preview of the selected item in the position specified using the drop-down list (in the bottom or in the right part of the window).
/help/img/dotnet/2016.3/ThemedIcon.Export.Screen.[Gray].png Export 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.
/help/img/dotnet/2016.3/ThemedIcon.MergeOccurences.Screen.[Gray].png Merge Occurrences on the Same Line If this button is selected, occurrences that belong to the same line are merged.
/help/img/dotnet/2016.3/ThemedIcon.RemoveAllUnusedReferences.Screen.[Gray].png Remove All Unused References Removes all assembly references that are not used.
/help/img/dotnet/2016.3/ThemedIcon.RemoveSelectedReference.Screen.[Gray].png Remove Selected References Removes all selected assembly references.
/help/img/dotnet/2016.3/ThemedIcon.Filter.Screen.[Gray].png Filter Usages With this drop-down list, you can select a specific type of usages to display. Several options are provided:
  • Show Read Usages (getters for properties, read methods for fields).
  • Show Write Usages (setters for properties, write methods for fields).
  • Show Invocation Usages
  • Show Attribute Usages
  • Show Other Usages (anything that does not fit into the above categories).
  • Show Related Usages
  • Show Unused References
Group by Allows grouping items in the window by different categories.

See Also

Last modified: 3 April 2017