dotPeek 2024.3 Help

Navigate file by its structure

File Structure window

With dotPeek, you can navigate the structure of the current document using the File Structure window, which greatly simplifies navigation in large files. The window is synchronized with the code viewer: as you switch to another code viewer tab, the window displays the structure of the corresponding file.

Open and use File Structure window

  1. Press Control+F11 or choose Windows | File Structure from the main menu . Alternatively, you can press Control+Shift+A, start typing the command name in the popup, and then choose it there.

  2. The contents of the current document appear in a tree structure, that you can explore and navigate through the document. You can double-click any symbol to make the caret in the code viewer switch to the corresponding position.

  3. To synchronize the way you change caret position in the code viewer with the symbol highlighted in the File Structure window, click Track Caret in Editor Track Caret in Editor on the toolbar.

  4. To synchronize symbols that you select in the File Structure window with the caret position in the code viewer, click Automatically Scroll to Source Automatically Scroll to Source on the toolbar.

dotPeek: File Structure window

Right from the File Structure window, you can access even more actions. To check available commands, you can right-click any symbol.

File Structure window toolbar controls

Control

Name

Description

ThemedIcon.ExpandAll.Screen.(Gray).png ThemedIcon.CollapseAll.Screen.(Gray).png

Expand All/Collapse All

Expands/collapses all nodes in the current tab.

ThemedIcon.Up.Screen.(Gray).png ThemedIcon.Down.Screen.(Gray).png

Previous/Next


Shift+F8/F8

Navigate to the previous/next item and scrolls through the source code accordingly.

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 an XML or HTML format. The Export Data dialog that appears will help you save the data to a file or copy it to the clipboard .

ThemedIcon.SyncCaretToView.Screen.(Gray).png

Track Caret in Editor

When this button is pressed, items in the window are highlighted according to the position of the caret in the code viewer.

ThemedIcon.SyncViewToCaret.Screen.(Gray).png

Automatically Scroll to Source

When this button is pressed, the code viewer opens the file and scrolls it according to the items selected in the window.

ThemedIcon.Macro.Screen.(SymbolsVs11Gray).png

Show Preprocessor Directives

In C++, shows all preprocessor directives in the current file.

This feature is inspired by and borrowed from JetBrains ReSharper, a developer productivity tool for Microsoft Visual Studio.

Last modified: 23 September 2024