View code hierarchy
When built, a hierarchy can be immediately viewed and examined in the Hierarchy tool window. By default, every new built hierarchy overwrites the contents of the current tab. You can retain the current tab and have the next hierarchy built in a new one.
Build a type hierarchy
In the editor, position the caret at the desired class.
From the main menu, selector just press ⌃H .
Build a call hierarchy
Call hierarchies show callers or callees of a method or function.
Open the file in the editor and place the caret at the declaration or usage of the desired method.
From the main menu, selector press ⌃⌥H .
Build a hierarchy of imports
Imports hierarchies show where the current file is included and track all files included in the current file.
Open the file in the editor or select it in the Project tool window.
From the main menu, select.
Retain a hierarchy tab
In the Hierarchy tool window, click the Pin Tab button on the toolbar.
Open the Hierarchy tool window
Make sure, you have already built hierarchies to show, see Building hierarchies above.
Selectfrom the main menu.
Navigate between the tabs
Toggle between views
With AppCode, you can build and explore ascending or descending hierarchies, that is, callee or caller methods, parent or children classes, and so on.
Click or to show caller methods or callee methods respectively.
Hierarchy tool window buttons
|Depending on the hierarchy type:||All hierarchies|
|Sorts all elements within a tree alphabetically.|
|Shows all updated classes or class structures.||All hierarchies|
|Moves to a file and a section in a source code that corresponds to the selected node in the hierarchy tree.||All hierarchies|
|Expands all nodes.||All hierarchies|
|Locks the current tab from closing and reusing. Results of the next command are displayed in a new tab.||All hierarchies|
|Exports a hierarchy into a text file. You can specify a location for this file.||All hierarchies|
|Closes the tool window.||All hierarchies|