ReSharper Web Help

ReSharper | Find | Optimize References
Ctrl+Alt+YCtrl+Alt+Y

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.

Navigation_and_Search__Finding_Usages__Optimizing_References__Analyze_References

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

Toolbar controls

Control Name Description
toolbar__refresh Refresh Updates window content to reflect any changes made in the code.
toolbar__expand_all toolbar__collapse_all Expand All/Collapse All Expands/collapses all nodes in the current tab.
toolbar__previous toolbar__next Previous/Next Navigate to the previous/next item and scrolls through the source code accordingly.
toolbar_show_preview Show Preview Hides or shows the preview pane in the position specified using the drop-down list (in the bottom or in the right part of the window).
toolbar__export 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 box that appears, will help you to save the data to a file or copy it to the clipboard.
toolbar__merge_occurrences Merge Occurrences on the Same Line If this button is selected, occurrences that belong to the same line are merged.
Reference__Windows__Analyze_References__Remove_Unused_References Remove All Unused References Removes all assembly references that are not used.
Reference__Windows__Analyze_References__Remove_Selected_References Remove Selected References Removes all selected assembly references.
toolbar__filter_usages 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. Possible options help display items as a tree grouped by the selected categories.
tab_close Close Closes the current tab.