CodeGraphToDgml
Code Graph to DGML is a Visual Studio extension that builds DGML graphs from the symbol at the editor caret.
Features
Traverse Up to DGML
- traverses callers upward from C# and Visual Basic methods, properties, and events
- limits traversal by maximum depth and node count
- filters properties, events, external symbols, and generated code
- discovers forms, pages, and windows that host UI components (WinForms, WebForms, WPF, Blazor, MAUI, Avalonia) and adds them with UsedBy links
- follows nested component hosting up to a configurable depth
Traverse Down to DGML
- traverses callees downward from C# and Visual Basic methods, properties, and events
- follows interface implementations and overridden base members so the graph reflects the methods that may actually run at each call site
- limits traversal by maximum depth and node count
- filters properties, events, external symbols, and generated code
All References to DGML
- mirrors Visual Studio's built-in
Find All References (Shift+F12) for the symbol at the caret
- supports C# and Visual Basic types (class, struct, interface, record) and members (methods, properties, events, fields)
- adds a
References link from each enclosing referrer (method, property, event, field, or type) to the target symbol
- limits traversal by maximum depth and node count and respects the external symbol and generated code filters
Common
- appends to or replaces an open DGML document
- creates a temporary DGML document when no target document is open
- reports progress in the status bar and a cancellable modal dialog
- writes execution details to a dedicated Output window pane
Prerequisites
The DGML editor is included by default in Visual Studio Enterprise. For Community or Professional editions it must be installed separately:
- Open Visual Studio Installer.
- Click Modify on your Visual Studio installation.
- Switch to the Individual components tab.
- Search for DGML editor.
- Check the component and click Modify to install it.
Without the DGML editor, Visual Studio cannot open or display .dgml files generated by this extension.
| |