Skip to content

Commit 0d5e562

Browse files
committed
Updated IEnumerable visualizer details.
1 parent 1ada0bc commit 0d5e562

5 files changed

+66
-56
lines changed
Loading
Loading
Loading

docs/debugger/view-data-ienumerable-table-visualizer.md

Lines changed: 0 additions & 56 deletions
This file was deleted.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
title: "View .NET collections with the IEnumerable visualizer | Microsoft Docs"
3+
description: Use IEnumerable visualizer in Visual Studio debuggerView .NET collections.
4+
ms.date: "04/08/2022"
5+
ms.topic: "conceptual"
6+
dev_langs:
7+
- "CSharp"
8+
- "VB"
9+
- "FSharp"
10+
helpviewer_keywords:
11+
- "string visualizer"
12+
- "visualizers, string"
13+
author: "mikejo5000"
14+
ms.author: "mikejo"
15+
manager: jmartens
16+
ms.technology: vs-ide-debug
17+
monikerRange: '>= vs-2022'
18+
ms.workload:
19+
- "multiple"
20+
---
21+
# View .NET collections with the IEnumerable visualizer in Visual Studio
22+
23+
[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]
24+
25+
Starting in Visual Studio 2022 Update 2 Preview 1, you can view IEnumerable collections in a tabular view.
26+
27+
The IEnumerable visualizer helps explore large collection objects in a more streamlined way. The visualizer supports IEnumerable collections where the object type (T) can be simple types or complex types like dictionaries.
28+
29+
## Open the visualizer
30+
31+
To open the IEnumerable visualizer, you must be paused during debugging.
32+
33+
1. Where you have an IEnumerable code implementation, find the magnifying glass icon ![VisualizerIcon](../debugger/media/dbg-tips-visualizer-icon.png "Visualizer icon"):
34+
35+
- Value column of the Locals and Watch window.
36+
- When you hover over a variable.
37+
38+
1. Select the icon to open the IEnumerable visualizer.
39+
40+
:::image type="content" source="../debugger/media/vs-2022/dbg-open-IEnumerable-visualizer.png" alt-text="Open a IEnumerable visualizer":::
41+
42+
## View IEnumerable visualizer data
43+
44+
The visualizer shows the IEnumerable data in a format.
45+
46+
:::image type="content" source="../debugger/media/vs-2022/dbg-IEnumerable-visualizer.png" alt-text="View the visualizer data":::
47+
48+
You can use the right-click context menu to customize the view:
49+
50+
- Select **Hide Column** to hide duplicate data.
51+
- Select **Expand Column** to see more profound items in the complex data.
52+
- Select **Hide Children** to get a more concise view of your data.
53+
54+
## Export visualizer data
55+
- You can export the data from IEnumerable visualizers in CSV/Excel format using the dropdown on the top right corner.
56+
57+
## Filter and sort visualizer data
58+
- To sort the visualizer data by ascending/descending order click on the desired column title the visualizer data will be sorted.
59+
- You also can filter visualizer data based desired filter string. Enter the string in the filter box on the upper right corner and hit enter. The Visualizer will return all the rows that contain a value that matches the filter string.
60+
- You can also export the filtered and sorted results in CSV/Excel format.
61+
62+
:::image type="content" source="../debugger/media/vs-2022/dbg-IEnumerable-visualizer-filter.gif" alt-text="View the visualizer data filter":::
63+
64+
## See also
65+
66+
- [Create custom visualizers (C#, Visual Basic)](../debugger/create-custom-visualizers-of-data.md)

0 commit comments

Comments
 (0)