ReSharper Help

Hierarchy

ReSharper | Windows | Hierarchies
ReSharper | Inspect | Hierarchies

The Hierarchy window can display several types of hierarchical structures of your code: hierarchy of types , project hierarchy, and type dependency diagram, as well as hierarchy of CSS styles .

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.

TypeHierarchy_MembersPreview

Toolbar controls

ControlNameDescription
toolbar__refresh Refresh Updates window content to reflect any changes made in the code.
Reference__Windows__Type_Hierarchy_Window__Base_on_This 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.
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 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).
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.
Reference__Windows__Type_Hierarchy_Window__Class_Hierarchy 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 Reference__Windows__Type_Hierarchy_Window__Base_on_This, and the tree will be rebuilt accordingly.
Reference__Windows__Type_Hierarchy_Window__Subtypes_Hierarchy Subtypes Hierarchy This tree shows all subtypes of the center type. The center type is positioned at the root of the tree.
Reference__Windows__Type_Hierarchy_Window__Supertypes_Hierarchy 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.
Reference__Windows__Type_Hierarchy_Window__Implementation_Hierarchy Implementation Hierarchy This tree shows all descendants of the center type.
Reference__Windows__Type_Hierarchy_Window__Interface_Leaves Interface Leaves This tree shows leaves of the selected interface.
Reference__Windows__Type_Hierarchy_Window__Show_Solution_Members Show Elements From This Solution Hides symbols from external libraries.
icon_show_on_diagram Show on Diagram Click this button to display all the types shown in the window in the type dependencies diagram view.
Reference__Windows__Type_Hierarchy_Window__Class_Hierarchy Referenced Projects Click this button to display all project and assemblies referenced by the current project.
Reference__Windows__Type_Hierarchy_Window__Subtypes_Hierarchy 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. Possible options help display items as a tree grouped by the selected categories.
tab_close Close Closes the current tab.
Reference__Windows__Type_Hierarchy_Window__All_Instance_Members All Instance Members (preview pane) Displays all instance members in the preview pane.
Reference__Windows__Type_Hierarchy_Window__Only_Polymorphic_Members 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
toolbar__refresh Refresh Updates window content to reflect any changes made in the code.
Reference__Windows__Type_Hierarchy_Window__Base_on_This 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.
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__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.

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
toolbar__refresh Refresh Updates window content to reflect any changes made in the code.
Coding_Assistance__Context_Actions__icon_refactor 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.
icon_undo Undo Click this button to revert the changes in the view structure (adding and removing items) step by step.
icon_redo Redo Click this button to revert the last Undo operation.
icon_export Export to PNG Click this button to save the visible part of the diagram as a PNG image file.
toolbar__filter_usages Filter Dependencies With this drop-list, you can select what kinds of dependencies should be displayed between types on the diagram.

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

See Also

Last modified: 30 June 2015