Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Code Graph to DGML
Code Graph to DGML

Code Graph to DGML

Luciano Evaristo Guerche

|
67 installs
| (0) | Free
Visualize code relationships as DGML graphs from C# and Visual Basic editors — call hierarchies, type references, and more.
Download

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:

  1. Open Visual Studio Installer.
  2. Click Modify on your Visual Studio installation.
  3. Switch to the Individual components tab.
  4. Search for DGML editor.
  5. 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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft