ReSharper 2017.1 Help

Hierarchy window

ReSharper | Windows | Hierarchies
ReSharper | Inspect | Hierarchies

The Hierarchy window can display several types of hierarchical structures of your code:

Hierarchy of Types

This view displays the hierarchy of types that includes members and the list of all subtypes and supertypes of a particular type. You can analyze the hierarchy and navigate to the declaration of any type by double-clicking it.

/help/img/dotnet/2017.1/TypeHierarchy_MembersPreview.png

Toolbar Controls

ControlNameDescription
/help/img/dotnet/2017.1/ThemedIcon.Refresh.Screen.[Gray].png Refresh Updates window content to reflect any changes made in the code.
/help/img/dotnet/2017.1/ThemedIcon.Base.Screen.[Gray].png Base on This A selected type becomes the root of the hierarchy tree and the tree is rebuilt accordingly. The new base type is highlighted with bold.
/help/img/dotnet/2017.1/ThemedIcon.ExpandAll.Screen.[Gray].png /help/img/dotnet/2017.1/ThemedIcon.CollapseAll.Screen.[Gray].png Expand All/ Collapse All Expands/collapses all nodes in the current tab.
/help/img/dotnet/2017.1/ThemedIcon.Up.Screen.[Gray].png /help/img/dotnet/2017.1/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/2017.1/ThemedIcon.PreviewToggle.Screen.[Gray].png Show Members 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).
/help/img/dotnet/2017.1/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/2017.1/ThemedIcon.Hierarchy.Screen.[Gray].png Class Hierarchy This tree shows all subtypes and supertypes of the center type. The center type can be located anywhere in the tree, not necessarily at the root. You can select a different center type using the Base on This button /help/img/dotnet/2017.1/ThemedIcon.Base.Screen.[Gray].png, and the tree will be rebuilt accordingly.
/help/img/dotnet/2017.1/ThemedIcon.Subtypes.Screen.[Gray].png Subtypes Hierarchy This tree shows all subtypes of the center type. The center type is positioned at the root of the tree.
/help/img/dotnet/2017.1/ThemedIcon.Supertypes.Screen.[Gray].png Supertypes Hierarchy This tree shows all supertypes of the center type in ascending order (each child node is the supertype of its parent). The center type is positioned at the root of the tree.
/help/img/dotnet/2017.1/ThemedIcon.ImplHierarchy.Screen.[Gray].png Implementation Hierarchy This tree shows all descendants of the center type.
/help/img/dotnet/2017.1/ThemedIcon.LeafInterface.Screen.[Gray].png Interface Leaves This tree shows leaves of the selected interface.
/help/img/dotnet/2017.1/ThemedIcon.ExcludeLibraryElement.Screen.[Gray].png Show Elements From This Solution Hides symbols from external libraries.
/help/img/dotnet/2017.1/ThemedIcon.TypeLayoutAlt.Screen.[Gray].png Show on Diagram Click this button to display all the types shown in the window in the type dependencies diagram view.
/help/img/dotnet/2017.1/ThemedIcon.Hierarchy.Screen.[Gray].png Referenced Projects Click this button to display all project and assemblies referenced by the current project.
/help/img/dotnet/2017.1/ThemedIcon.Subtypes.Screen.[Gray].png Referencing Projects Click this button to display all project that reference the current project. The hierarchy is shown in ascending order (each child node is the project that reference its parent). The current project is positioned at the root of the tree.
Group by Allows grouping items in the window by different categories.
/help/img/dotnet/2017.1/ThemedIcon.AllMembers.Screen.[Gray].png All Instance Members (preview pane) Displays all instance members in the preview pane.
/help/img/dotnet/2017.1/ThemedIcon.VirtualMembers.Screen.[Gray].png Only Polymorphic Members (preview pane) Restricts the preview pane to displaying only polymorphic members of the selected hierarchy node.

Hierarchy of Projects

This view displays the hierarchy of project and assembly references for the selected project. This hierarchy includes projects and assemblies referenced by or referencing a specific project.

Hierarchy of project references

Toolbar Controls

ControlNameDescription
/help/img/dotnet/2017.1/ThemedIcon.Refresh.Screen.[Gray].png Refresh Updates window content to reflect any changes made in the code.
/help/img/dotnet/2017.1/ThemedIcon.Base.Screen.[Gray].png Base on This A selected type becomes the root of the hierarchy tree and the tree is rebuilt accordingly. The new base type is highlighted with bold.
/help/img/dotnet/2017.1/ThemedIcon.ExpandAll.Screen.[Gray].png /help/img/dotnet/2017.1/ThemedIcon.CollapseAll.Screen.[Gray].png Expand All/ Collapse All Expands/collapses all nodes in the current tab.
/help/img/dotnet/2017.1/ThemedIcon.Up.Screen.[Gray].png /help/img/dotnet/2017.1/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/2017.1/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.

Type dependency diagram

The type dependency diagram view allows you to visually study dependencies between types in your solutions. You can add any number of types from different projects or compiled assemblies and visualize different kinds of dependencies between them. For more information, see Exploring Type Dependency Diagram.

Type dependency diagram

Toolbar Controls

ControlNameDescription
/help/img/dotnet/2017.1/ThemedIcon.Refresh.Screen.[Gray].png Refresh Updates window content to reflect any changes made in the code.
/help/img/dotnet/2017.1/ThemedIcon.RefactorThis.Screen.[Gray].png Allow 'Move to Folder' on drag-n-drop Click this button to perform the Move to Folder refactoring when you drag-n-drop types on the diagram. This refactoring would move the file containing the type to the target folder, fix namespace references and change internal visibility to public if necessary.
/help/img/dotnet/2017.1/ThemedIcon.Undo.Screen.[Gray].png Undo Click this button to revert the changes in the view (adding and removing items) step by step.
/help/img/dotnet/2017.1/ThemedIcon.Redo.Screen.[Gray].png Redo Click this button to revert the last Undo operation.
/help/img/dotnet/2017.1/ThemedIcon.Export.Screen.[Gray].png Export to PNG Click this button to save the visible part of the diagram as a PNG image file.
/help/img/dotnet/2017.1/ThemedIcon.Filter.Screen.[Gray].png Filter Dependencies With this drop-list, you can select what kinds of dependencies should be displayed between types on the diagram.

Assembly dependency diagram

The assembly dependency diagram helps you visually explore dependencies between compiled assemblies. For more information, see Exploring Assembly Dependency Diagram.

/help/img/dotnet/2017.1/assembly_diagram.png

Toolbar Controls

ControlNameDescription
/help/img/dotnet/2017.1/ThemedIcon.Undo.Screen.[Gray].png Undo Click this button to revert the changes in the view (adding and removing items) step by step.
/help/img/dotnet/2017.1/ThemedIcon.Redo.Screen.[Gray].png Redo Click this button to revert the last Undo operation.
/help/img/dotnet/2017.1/ThemedIcon.Export.Screen.[Gray].png Export to PNG Click this button to save the visible part of the diagram as a PNG image file.

CSS hierarchy

This view allows you to see the whole hierarchy of css selectors. For each selector in the hierarchy you can quickly view its definition. For more information, see hierarchy of CSS styles.

/help/img/dotnet/2017.1/ReSharper_by_Language__CSS__Hierarchy.png

Hierarchy of references

This view helps you explore hierarchy of references for any assembly and track down all assembly dependencies. Recursive dependencies are detected and marked with a glyph to the right of a reference entry. For more information, see Exploring Hierarchy of References.

/help/img/dotnet/2017.1/ReSharper_References_Hierarchy.png

Window tabs

When you open new type or style hierarchies, or type dependency graphs 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/2017.1/ThemedIcon.Pin.Screen.[Gray].png next to the tab title.

See Also

Last modified: 4 July 2017