Skip to content

Commit fb57a0e

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
authored andcommitted
Merging changes synced from https://github.com/MicrosoftDocs/visualstudio-docs-pr (branch live)
2 parents 364734b + 70f0e52 commit fb57a0e

File tree

9 files changed

+162
-21
lines changed

9 files changed

+162
-21
lines changed

docs/ide/find-in-files.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Search within Specific Files with 'Find in Files'"
33
description: Explore the Find in Files feature in Visual Studio and discover how to use the feature to search a specific set of files.
4-
ms.date: 11/1/2024
4+
ms.date: 9/12/2025
55
ms.topic: conceptual
66
f1_keywords:
77
- vs.findinfiles
@@ -24,9 +24,15 @@ ms.subservice: general-ide
2424

2525
**Find in Files** allows you to search a specified set of files. The matches Visual Studio finds are listed in the **Find Results** window in the IDE. How the results appear depends on the options you choose on the **Find in Files** tab of the **Find and Replace** dialog box.
2626

27-
::: moniker range=">=vs-2022"
27+
::: moniker range="visualstudio"
28+
29+
:::image type="content" source="media/visualstudio/find-files.png" alt-text="Screenshot of the Find and Replace dialog box in Visual Studio, with the Find in Files tab open.":::
30+
31+
::: moniker-end
32+
33+
::: moniker range="vs-2022"
2834

29-
:::image type="content" source="media/vs-2022/find-files.png" alt-text="Screenshot of the Find and Replace dialog box in Visual Studio 20222, with the Find in Files tab open.":::
35+
:::image type="content" source="media/vs-2022/find-files.png" alt-text="Screenshot of the Find and Replace dialog box in Visual Studio 2022, with the Find in Files tab open.":::
3036

3137
::: moniker-end
3238

@@ -97,6 +103,17 @@ The **File types** option indicates the types of files to search through in the
97103

98104
You can search for multiple file types by separating them with a semicolon (`;`). You can also exclude folders and files by prefixing any path or file type with an exclamation mark (`!`).
99105

106+
:::moniker-end
107+
108+
:::moniker range="visualstudio"
109+
You can permanently exclude some files from search; see [Exclude files from search](finding-and-replacing-text.md#exclude-files-from-search). To toggle these exclusions, use the button.
110+
111+
![Screenshot showing toggle button for file exclusions.](media/visualstudio/find-file-exclusions-find-in-files-toggle.png)
112+
113+
:::moniker-end
114+
115+
:::moniker range=">=vs-2022"
116+
100117
### Append results
101118

102119
Use this option to append the results from the current search to previous search results.

docs/ide/finding-and-replacing-text.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Open the **Find and Replace** dialog box by pressing **Ctrl**+**Shift**+**F**, o
9393
9494
:::moniker-end
9595

96-
::: moniker range=">=vs-2022"
96+
::: moniker range="vs-2022"
9797

9898
1. On the menu bar, select **Edit** > **Find and Replace**.
9999
1. Choose **Find in Files** from the fly-out menu.
@@ -102,6 +102,15 @@ Open the **Find and Replace** dialog box by pressing **Ctrl**+**Shift**+**F**, o
102102

103103
:::moniker-end
104104

105+
::: moniker range="visualstudio"
106+
107+
1. On the menu bar, select **Edit** > **Find and Replace**.
108+
1. Choose **Find in Files** from the fly-out menu.
109+
110+
:::image type="content" source="media/visualstudio/find-files.png" alt-text="Screenshot of the Find and Replace dialog box in Visual Studio, with the Find in Files tab open.":::
111+
112+
:::moniker-end
113+
105114
To expose the **Replace** text box, use the down arrow to the left of the **Find** text, or choose the tab **Replace in Files**. When you switch to replace mode, an additional text field appears for the replacement text, and a checkbox appears that provides the option to preserve case when replacing text.
106115

107116
Set the scope of your search and replace operation to:
@@ -112,9 +121,15 @@ Set the scope of your search and replace operation to:
112121
- The current project
113122
- Specified folder sets
114123
- Specified file extensions
115-
124+
116125
The **Find and Replace** tool does not search directories with the `Hidden` or `System` attribute.
117126

127+
:::moniker range="visualstudio"
128+
You can permanently exclude some files from search; see [Exclude files from search](#exclude-files-from-search).
129+
:::moniker-end
130+
131+
### Cancel a search
132+
118133
To cancel a Find or Replace operation, press **Ctrl**+**Break**.
119134

120135
For more information, see [Find in files](../ide/find-in-files.md) and [Replace in files](../ide/replace-in-files.md), and for more about using regular expressions, see [Use Regular Expressions](../ide/using-regular-expressions-in-visual-studio.md).
@@ -134,6 +149,22 @@ You can define a search scope by choosing the **Choose Search Folders** button (
134149

135150
You can define component sets as your search scope by choosing the **Edit Custom Component Set** button next to the **Look in** box. You can specify installed .NET or COM components, Visual Studio projects that are included in your solution, or any assembly or type library (*.dll*, *.tlb*, *.olb*, *.exe*, or *.ocx*). To search references, select the **Look in references** box.
136151

152+
:::moniker range="visualstudio"
153+
154+
## Exclude files from search
155+
156+
You can exclude specific files such as build artifacts, minified scripts, or generated files, that you don't want to be included in the typical search.
157+
158+
To set up files to exclude, go to **Tools > Options > Environment > Search**, and look for the **Exclude files from search results** section. There, you can add, edit, or remove glob patterns to control exactly which files are left out of your search results.
159+
160+
![Screenshot that shows settings to exclude files from search results.](media/visualstudio/find-file-exclusions.png)
161+
162+
These exclusions are automatically applied in [Quick Find](#control). For [Find in Files](#multifile), these exclusions are applied in addition to any exclusions in the **File types** field. You can toggle the settings level exclusions on or off via the toggle button on the right of the **File types**.
163+
164+
![Screenshot showing toggle button for file exclusions.](media/visualstudio/find-file-exclusions-find-in-files-toggle.png)
165+
166+
:::moniker-end
167+
137168
## Multi-caret selection
138169

139170
Use *multi-caret selection* to make the same edit in two or more places at the same time. For example, you can insert the same text or modify existing text in multiple locations at the same time.
12.6 KB
Loading
76.8 KB
Loading
46.5 KB
Loading

docs/ide/visual-studio-search.md

Lines changed: 88 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Use Visual Studio search to find code & do queries
33
description: Explore the Visual Studio search feature and discover how to find settings, menus, code, and work with filters, queries, and more.
4-
ms.date: 3/11/2025
4+
ms.date: 9/16/2025
55
ms.topic: how-to
66
helpviewer_keywords:
77
- environments [Visual Studio], navigation
@@ -22,7 +22,88 @@ ms.subservice: general-ide
2222

2323
The Visual Studio integrated development environment (IDE) has many menus, options, and features, which can be difficult to remember. The Visual Studio search feature is a single search box that helps developers find IDE menus and options, while also searching your code. Whether you're new to Visual Studio or an experienced developer, this feature offers a quick way to search across IDE features and your code.
2424

25-
::: moniker range=">=vs-2022"
25+
:::moniker range="visualstudio"
26+
27+
## Search in Visual Studio
28+
29+
With **All-In-One Search** in Visual Studio, not only can you search for features using **Feature Search**, but you can also search your code elements, such as files and symbols, using **Code Search**.
30+
31+
:::image type="content" source="media/vs-2022/all-in-one-search-member-filter.png" alt-text="Screenshot of the All-In-One Search experience in Visual Studio 2022 version 17.6 or later.":::
32+
33+
The search button appears next to the menu bar, as shown in the following screenshot:
34+
35+
:::image type="content" source="media/vs-2022/all-one-search-from-menu-bar.png" alt-text="Screenshot of the All-In-One Search experience from the Visual Studio menu bar.":::
36+
37+
GitHub Copilot Chat is integrated with Feature Search. When you're trying to find something in Feature Search, you can use the **Ask Copilot** button to get AI assistance that accounts for your Visual Studio version. To enable GitHub Copilot Chat, see [GitHub Copilot Chat](./visual-studio-github-copilot-chat.md).
38+
39+
For example, suppose you searched for "prettify file" in Feature Search. That doesn't return any results, because the name of the menu item is different ("Format document"). GitHub Copilot Chat is able to interpret your query and return the result.
40+
41+
:::image type="content" source="./media/vs-2022/feature-search-ask-copilot-prettify.png" lightbox="./media/vs-2022/feature-search-ask-copilot-prettify.png" alt-text="Screenshot showing the Ask Copilot button in All-In-One Search.":::
42+
43+
In Code Search, if you mistype a search query, Visual Studio can often detect this and suggest a possible correction. If a variation of the text you entered returns much better results, you'll see a message ("Did you mean ... ?") that suggests the alternate query. Just click on this message to accept the suggested query and refresh the results.
44+
45+
When you open Code Search without a query, you'll see a list of your recently navigated files. These include the files you opened through Code Search, but also any other files you opened in the solution. This makes it easy to jump back to a file you were recently working on without having to remember or type the file name.
46+
47+
:::image type="content" source="./media/vs-2022/code-search-recently-navigated-files.png" alt-text="Screenshot of All-In-One Search showing recently navigated files.":::
48+
49+
### Keyboard shortcuts for search
50+
51+
You can press **Ctrl**+**P**, **Ctrl**+**,** or **Ctrl**+**T** to open code search, or use the **Ctrl**+**Shift**+**P** or **Ctrl**+**Q** keyboard shortcuts for feature search.
52+
53+
### Filters for Code Search queries
54+
55+
To quickly get a filtered experience, you can type the corresponding prefixes before your query or use the corresponding keyboard shortcuts to open the search with the filter you want.
56+
57+
|Filter |Prefix |Keyboard shortcut |
58+
|---------|---------|--------------------------------|
59+
|files |`f:` | **Ctrl**+**Shift**+**T** |
60+
|types |`t:` | **Ctrl**+**1**, **Ctrl**+**T** |
61+
|members |`m:` | **Alt**+**\\** |
62+
|text |`x:` | **Shift**+**Alt**+**F** |
63+
64+
You can set the scope of code search to the current document, current project, the entire solution, or external files that are referenced in your solution, such as header files or files open from locations outside your solution. You can set different scopes for different filters. For example, the default experience can be set to look through *Entire solution* and `members` can be set to look through only the current document. Your selections will be remembered the next time you use code search.
65+
66+
:::image type="content" alt-text="Screenshot of code search scope options." source="./media/vs-2022/search-code-scope.png" :::
67+
68+
You can use the text filter (**Shift**+**Alt**+**F**) in Code Search to search for a text string, with options to match the case, match whole words, or use a regular expression. The regular expression format is described at [Regular expressions](/dotnet/standard/base-types/regular-expression-language-quick-reference).
69+
70+
:::image type="content" alt-text="Screenshot of text search with various options." source="./media/vs-2022/search-text-search-text-options-highlighted.png" :::
71+
72+
### Navigation in Code Search
73+
74+
You can navigate to a specific line in the current document or other specified document.
75+
76+
To go to a line in the *current* document, type colon (`:`) followed by the line number. For example, `:39` navigates to line 39 in the active file.
77+
78+
![Screenshot showing Go to line in current document.](./media/vs-2022/all-in-one-search-go-to-line-same-document.png)
79+
80+
You can also go to a line in a different document by typing the filename, colon, and then the line number. For example, `Order:43` navigates to line 43 in *Order.cs*. If you don't specify the exact file name, then the search will try to find the best match.
81+
82+
![Screenshot showing Go to line in different document.](./media/vs-2022/all-in-one-search-go-to-line-different-document.png)
83+
84+
You can also navigate to a specific line and column in a specified file. Use `file:line` to navigate to a specific line in a specified file, or `file:line,col` to navigate to a specific line and column in a specified file. You can use parentheses instead of the colon, for example, `file(line,col)`. This last syntax makes it easy to paste in a location from an error message.
85+
86+
![Screenshot showing navigation to file, line, and column.](./media/vs-2022/code-search-go-to-line-parentheses.png)
87+
88+
### Dock as a tool window
89+
90+
You can dock the search window instead of having it floating in front. This can be helpful to avoid interrupting your code editing. Use the icon near the top right of the window to enable docking as a tool window.
91+
92+
![Screenshot showing docking icon on the search window.](./media/vs-2022/all-in-one-search-docking-icon.png)
93+
94+
You can use a similar icon on the tool window to revert back to the floating window.
95+
96+
### Toggle preview pane
97+
98+
Use the eye icon to disable or enable the preview pane.
99+
100+
![Screenshot showing the icon to toggle the preview pane in the search window.](./media/vs-2022/all-in-one-search-toggle-preview.png)
101+
102+
The preview pane's position automatically adjusts based on the dimensions of the search window.
103+
104+
::: moniker-end
105+
106+
::: moniker range="vs-2022"
26107

27108
## Search in Visual Studio 2022 version 17.6 or later
28109

@@ -106,7 +187,9 @@ With Visual Studio 17.12 or later, you can toggle the preview pane. Use the eye
106187

107188
Also new with Visual Studio 17.12, the preview panel's position automatically adjusts based on the dimensions of the search window.
108189

109-
::: moniker-end
190+
:::moniker-end
191+
192+
::: moniker range="<=vs-2022"
110193

111194
## Search in Visual Studio 2022 version 17.5 or earlier
112195

@@ -154,6 +237,8 @@ The search results include tabs for **All**, **Code**, **Visual Studio**. You ca
154237
- **Ctrl**+**Q**, **Ctrl**+**M** for Visual Studio menus, options, components, and templates
155238
- **Ctrl**+**Q**, **Ctrl**+**E** to go to the **All** tab, for both
156239

240+
::: moniker-end
241+
157242
## Related content
158243

159244
- [Visual Studio commands](reference/visual-studio-commands.md)
12.3 KB
Loading

subscriptions/access-github.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,21 @@ title: Visual Studio subscriptions with GitHub Enterprise
33
author: joseb-rdc
44
ms.author: amast
55
manager: shve
6-
ms.date: 09/12/2024
6+
ms.date: 09/29/2025
77
ms.topic: conceptual
88
description: Discover how to access GitHub Enterprise as part of Visual Studio subscriptions, get started using GitHub, and find support options.
99
---
1010

1111
# Visual Studio subscriptions with GitHub Enterprise
1212

13+
## What's on this page
14+
15+
+ ***Eligibility:*** *Learn which Visual Studio subscriptions include GitHub Enterprise.*
16+
+ ***Setup Access:*** *Follow steps for admins and users to link accounts and accept invites.*
17+
+ ***Get Help:*** *Find links to GitHub resources, FAQs, and troubleshooting guides.*
18+
19+
## Overview
20+
1321
Customers who have Enterprise Agreements (EA) with Microsoft are eligible to purchase a new subscription offer that brings together Visual Studio standard subscriptions and GitHub Enterprise. It's an easy and economical way for Visual Studio subscribers to acquire GitHub Enterprise.
1422

1523
+ Innovate at scale with Visual Studio and GitHub by securely bringing open source code, community, and best practices into your IDE and workflows.
@@ -33,7 +41,7 @@ Visual Studio subscriptions with GitHub Enterprise are managed in two parts:
3341
1. The Visual Studio subscription (Enterprise or Professional)
3442
2. GitHub Enterprise
3543

36-
When you're assigned a Visual Studio subscription with GitHub Enterprise, you receive an email letting you know that your Visual Studio subscriptions admin has assigned a subscription to you. At that point, you can view available subscription benefits at <https://my.visualstudio.com/benefits>. The GitHub Enterprise benefit looks like this:
44+
When you're assigned to a Visual Studio subscription with GitHub Enterprise, you receive an email letting you know that your Visual Studio subscriptions admin has assigned a subscription to you. At that point, you can view available subscription benefits at <https://my.visualstudio.com/benefits>. The GitHub Enterprise benefit looks like this:
3745

3846
> [!div class="mx-imgBorder"]
3947
> ![GitHub Enterprise pending Enterprise account setup](_img/access-github/pending-account-setup.png "Screenshot of the pending enterprise account setup dialog.")

0 commit comments

Comments
 (0)