Skip to content
| Marketplace
Sign in
Visual Studio Code>Debuggers>.NET Data Visualizer for VS CodeNew to Visual Studio Code? Get it now.
.NET Data Visualizer for VS Code

.NET Data Visualizer for VS Code

RickyLeRoi

|
279 installs
| (0) | Free
Visualize DataSet, DataTable, List, Dictionary and other .NET collections during C# debugging in VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

.NET Data Visualizer for VS Code

Visualize DataSet, DataTable, List, Dictionary and other .NET collections during C# debugging in VS Code.

Supported types:

Type Display
DataTable Grid with sortable columns and .NET type in header tooltip
DataSet One tab per DataTable
List<T> / T[] / IEnumerable<T> Index → value table
Dictionary<K,V> / Hashtable / SortedDictionary Key → value table
string String Viewer with Plain / JSON / Markdown modes
Any object Property browser (via DAP variables)

All views support real-time text filtering, column sorting, CSV export and clipboard copy.


Requirements

  • Visual Studio Code ≥ 1.85
  • C# Dev Kit or C# extension with a coreclr or clr debug session

Usage

There are four ways to open the visualizer:

Method 1 — Editor selection + right-click (recommended)

  1. Start a C# debug session and pause on a breakpoint.
  2. In the editor, select a variable name or C# expression.
  3. Right-click → "Visualize with .NET Visualizer".

Method 2 — Keyboard shortcut

  1. Start a C# debug session and pause on a breakpoint.
  2. In the editor, select a variable name or place the cursor on it.
  3. Press Ctrl+Alt+V (Mac: Cmd+Alt+V).

If nothing is selected, the word under the cursor is used automatically.

Method 3 — Variables panel

  1. Start a C# debug session and pause on a breakpoint.
  2. In the Variables panel, right-click any variable.
  3. Choose "Visualize with .NET Visualizer".

Method 4 — Command Palette

  1. Start a C# debug session and pause on a breakpoint.
  2. Open the Command Palette (Ctrl+Shift+P).
  3. Run .NET Visualizer: Visualize Expression.
  4. Type a variable name or any valid C# expression (e.g. ds.Tables[0]).

Features

DataTable / DataSet

  • All columns are displayed with their .NET type in the header tooltip.
  • Click any column header to sort ascending/descending.
  • DataSet tables are shown as tabs — click a tab to switch table.

List / Array

  • Each element is shown with its zero-based index.
  • Works with List<T>, T[], ObservableCollection<T>, HashSet<T>, Queue<T>, Stack<T>, etc.

Dictionary

  • Keys and values are shown side by side.
  • Works with Dictionary<K,V>, SortedDictionary<K,V>, ConcurrentDictionary<K,V>, Hashtable.

String Viewer

When a string variable is visualized, the String Viewer opens below the main grid with three rendering modes:

Mode Description
Plain Raw text in a monospace <pre> block
JSON Pretty-printed and indented JSON (handles C# debugger-quoted values automatically)
Markdown Rendered Markdown preview via markdown-it (scripts and dangerous attributes are stripped)

Click a mode button to switch at any time. The viewer auto-detects the best mode on first open.

Show More

When a collection is larger than the current fetch limit, a Show More button appears at the bottom of the view. Clicking it doubles maxRows / maxItems for that expression and re-fetches, loading progressively more data without changing your global settings.

Live Visualizer

When dotnetVisualizer.liveVisualizer is enabled, clicking anywhere in the editor during a debug session automatically visualizes the identifier under the cursor — no manual invocation needed.

Filter

Type in the search box to filter rows in real time — works across all columns/values.

Export

  • Export CSV — downloads the current view as a .csv file.
  • Copy — copies the CSV text to the clipboard.

Extension Settings

Setting Default Description
dotnetVisualizer.maxRows 100 Maximum DataTable rows fetched per table. Increase for larger datasets (slower). Upper bound: 1000.
dotnetVisualizer.maxItems 1000 Maximum List/Dictionary items fetched. Upper bound: 10000.
dotnetVisualizer.liveVisualizer false When enabled, clicking in the editor during a debug session automatically visualizes the identifier under the cursor.

Note: fetching data from the debugger is sequential — large limits will make the visualizer slower to open. Use the Show More button to load additional data on demand instead of raising the limit globally.


Known Limitations

  • Only works while the debugger is paused (breakpoint / exception).
  • Complex nested objects in a DataTable cell are shown as their .ToString() value.
  • Very large collections are intentionally truncated for performance (configurable via settings).

CI / CD (GitHub Actions)

Two workflows are included in .github/workflows/:

ci.yml — runs on every push and pull request

  • Installs dependencies (npm ci)
  • Compiles TypeScript (npm run compile)
  • Uploads the out/ folder as a build artifact

release.yml — runs when a tag matching v*.*.* is pushed

  • Compiles and packages the .vsix
  • Creates a GitHub Release with the .vsix attached and auto-generated release notes
  • Publishes to the Visual Studio Marketplace (requires secret VSCE_PAT)
  • Publishes to the Open VSX Registry (requires secret OVSX_PAT)

The publish steps are conditional — if the corresponding secret is not set, the step is skipped automatically.

How to trigger a release

git tag v1.0.0
git push origin v1.0.0

Required GitHub secrets

Secret Description
VSCE_PAT Azure DevOps PAT with scope Marketplace → publish
OVSX_PAT Token from open-vsx.org

Add them under Settings → Secrets and variables → Actions in the GitHub repository.


Distribution

Package as .vsix (manual install)

npx vsce package

Generates vscode-dotnet-data-visualizer-1.0.0.vsix. Install it with:

code --install-extension vscode-dotnet-data-visualizer-1.0.0.vsix

Or from VS Code: Extensions → ··· → Install from VSIX…

Publish to Visual Studio Marketplace

  1. Create a publisher at marketplace.visualstudio.com/manage
  2. Generate a Personal Access Token (PAT) on Azure DevOps with scope Marketplace (publish)
  3. Login and publish:
npx vsce login <publisher-id>
npx vsce publish

Or in a single command:

npx vsce publish --pat <YOUR_PAT>

Publish to Open VSX Registry (VS Codium / other forks)

npx ovsx publish vscode-dotnet-data-visualizer-1.0.0.vsix --pat <OPENVSX_TOKEN>

Development

# Clone and install
git clone https://github.com/RickyLeRoi/vscode_visualizer.git
cd vscode_visualizer
npm install

# Compile
npm run compile

# Watch mode (recompiles on save)
npm run watch

Press F5 in VS Code to open an Extension Development Host window with the extension loaded.


License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft