Skip to content

Commit fd2a7ed

Browse files
authored
Review and update (#13773)
1 parent edb90f9 commit fd2a7ed

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

docs/ide/finding-references.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Finding references in your code
33
description: Explore the Find All References command in Visual Studio to find references to particular code elements in your code, including by reference type.
4-
ms.date: 04/10/2024
4+
ms.date: 4/1/2025
55
ms.topic: conceptual
66
helpviewer_keywords:
77
- code editor, find all references
@@ -23,11 +23,17 @@ The results appear in a tool window named **\<element> references**, where *elem
2323
- Remove any filters on the returned results by choosing the **Clear All Filters** button.
2424
- Change how returned items are grouped by choosing a setting in the **Group by:** drop-down list box.
2525
- Keep the current search results window by choosing the **Keep Results** button. When you choose this button, the current search results stay in this window, and new search results appear in a new tool window.
26+
- **List View** toggles between the treeview and a plaintext list. Some functionality is disabled in list view mode.
2627
- Search for strings within the search results by entering text in the **Search Find All References** text box.
2728

2829
You can also hover the mouse over any search result to see the reference in the context of the surrounding code.
2930

31+
:::moniker range="vs-2019"
3032
![Screenshot of the Find All References tool window.](../ide/media/vside_findallreferences.png)
33+
:::moniker-end
34+
:::moniker range="vs-2022"
35+
![Screenshot of the Find All References tool window.](media/vs-2022/find-all-references.png)
36+
:::moniker-end
3137

3238
## Navigate to references
3339

@@ -43,12 +49,18 @@ By default, references are grouped by project, then by definition. However, you
4349

4450
**Definition** and **Project** are the two default groupings used, but you can add others by choosing the **Grouping** command on the selected item's right-click or context menu. Adding more groupings can be helpful if your solution has numerous files and paths.
4551

52+
Grouping is not available in **List View** mode.
53+
4654
## Filter by reference type in .NET
4755

48-
In C# or Visual Basic, the **Find References** window has a **Kind** column where it lists what type of reference it found. You can use this column to filter by reference type. Select the filter icon that appears when you hover over the column header. You can filter references by Read, Write, Reference, Name, Namespace, and Type.
56+
In C# or Visual Basic, the **Find References** window has a **Kind** column where it lists what type of reference it found. You can use this column to filter by reference type. Select the filter icon that appears when you hover over the column header. You can filter references by Read, Write, Reference, Name, Namespace, and Type, but the filter only shows the kinds that are relevant in the current set of results.
4957

58+
:::moniker range="vs-2019"
5059
![Screenshot of the Find References window that highlights the Kind column.](../ide/media/vside_findallreferencesKind.png)
51-
60+
:::moniker-end
61+
:::moniker range=">=vs-2022"
62+
![Screenshot of the Find References window that highlights the Kind column.](media/vs-2022/find-all-references-kind-filter.png)
63+
:::moniker-end
5264
After you apply a filter or a filter set, you can easily remove it by using the **Clear All Filters** button.
5365

5466
## Customize the experience
48.2 KB
Loading
110 KB
Loading

0 commit comments

Comments
 (0)