Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions docs/ide/find-in-files.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Search within Specific Files with 'Find in Files'"
description: Explore the Find in Files feature in Visual Studio and discover how to use the feature to search a specific set of files.
ms.date: 11/1/2024
ms.date: 9/12/2025
ms.topic: conceptual
f1_keywords:
- vs.findinfiles
Expand All @@ -24,9 +24,15 @@ ms.subservice: general-ide

**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.

::: moniker range=">=vs-2022"
::: moniker range="visualstudio"

:::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.":::

::: moniker-end

::: moniker range="vs-2022"

:::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.":::
:::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.":::

::: moniker-end

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

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 (`!`).

:::moniker-end

:::moniker range="visualstudio"
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.

![Screenshot showing toggle button for file exclusions.](media/visualstudio/find-file-exclusions-find-in-files-toggle.png)

:::moniker-end

:::moniker range=">=vs-2022"

### Append results

Use this option to append the results from the current search to previous search results.
Expand Down
35 changes: 33 additions & 2 deletions docs/ide/finding-and-replacing-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Open the **Find and Replace** dialog box by pressing **Ctrl**+**Shift**+**F**, o

:::moniker-end

::: moniker range=">=vs-2022"
::: moniker range="vs-2022"

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

:::moniker-end

::: moniker range="visualstudio"

1. On the menu bar, select **Edit** > **Find and Replace**.
1. Choose **Find in Files** from the fly-out menu.

:::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.":::

:::moniker-end

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.

Set the scope of your search and replace operation to:
Expand All @@ -112,9 +121,15 @@ Set the scope of your search and replace operation to:
- The current project
- Specified folder sets
- Specified file extensions

The **Find and Replace** tool does not search directories with the `Hidden` or `System` attribute.

:::moniker range="visualstudio"
You can permanently exclude some files from search; see [Exclude files from search](#exclude-files-from-search).
:::moniker-end

### Cancel a search

To cancel a Find or Replace operation, press **Ctrl**+**Break**.

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).
Expand All @@ -134,6 +149,22 @@ You can define a search scope by choosing the **Choose Search Folders** button (

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.

:::moniker range="visualstudio"

## Exclude files from search

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.

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.

![Screenshot that shows settings to exclude files from search results.](media/visualstudio/find-file-exclusions.png)

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**.

![Screenshot showing toggle button for file exclusions.](media/visualstudio/find-file-exclusions-find-in-files-toggle.png)

:::moniker-end

## Multi-caret selection

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.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/ide/media/visualstudio/find-files.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 88 additions & 3 deletions docs/ide/visual-studio-search.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Use Visual Studio search to find code & do queries
description: Explore the Visual Studio search feature and discover how to find settings, menus, code, and work with filters, queries, and more.
ms.date: 3/11/2025
ms.date: 9/16/2025
ms.topic: how-to
helpviewer_keywords:
- environments [Visual Studio], navigation
Expand All @@ -22,7 +22,88 @@ ms.subservice: general-ide

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.

::: moniker range=">=vs-2022"
:::moniker range="visualstudio"

## Search in Visual Studio

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**.

:::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.":::

The search button appears next to the menu bar, as shown in the following screenshot:

:::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.":::

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).

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.

:::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.":::

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.

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.

:::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.":::

### Keyboard shortcuts for search

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.

### Filters for Code Search queries

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.

|Filter |Prefix |Keyboard shortcut |
|---------|---------|--------------------------------|
|files |`f:` | **Ctrl**+**Shift**+**T** |
|types |`t:` | **Ctrl**+**1**, **Ctrl**+**T** |
|members |`m:` | **Alt**+**\\** |
|text |`x:` | **Shift**+**Alt**+**F** |

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.

:::image type="content" alt-text="Screenshot of code search scope options." source="./media/vs-2022/search-code-scope.png" :::

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).

:::image type="content" alt-text="Screenshot of text search with various options." source="./media/vs-2022/search-text-search-text-options-highlighted.png" :::

### Navigation in Code Search

You can navigate to a specific line in the current document or other specified document.

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.

![Screenshot showing Go to line in current document.](./media/vs-2022/all-in-one-search-go-to-line-same-document.png)

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.

![Screenshot showing Go to line in different document.](./media/vs-2022/all-in-one-search-go-to-line-different-document.png)

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.

![Screenshot showing navigation to file, line, and column.](./media/vs-2022/code-search-go-to-line-parentheses.png)

### Dock as a tool window

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.

![Screenshot showing docking icon on the search window.](./media/vs-2022/all-in-one-search-docking-icon.png)

You can use a similar icon on the tool window to revert back to the floating window.

### Toggle preview pane

Use the eye icon to disable or enable the preview pane.

![Screenshot showing the icon to toggle the preview pane in the search window.](./media/vs-2022/all-in-one-search-toggle-preview.png)

The preview pane's position automatically adjusts based on the dimensions of the search window.

::: moniker-end

::: moniker range="vs-2022"

## Search in Visual Studio 2022 version 17.6 or later

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

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

::: moniker-end
:::moniker-end

::: moniker range="<=vs-2022"

## Search in Visual Studio 2022 version 17.5 or earlier

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

::: moniker-end

## Related content

- [Visual Studio commands](reference/visual-studio-commands.md)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions subscriptions/access-github.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@ title: Visual Studio subscriptions with GitHub Enterprise
author: joseb-rdc
ms.author: amast
manager: shve
ms.date: 09/12/2024
ms.date: 09/29/2025
ms.topic: conceptual
description: Discover how to access GitHub Enterprise as part of Visual Studio subscriptions, get started using GitHub, and find support options.
---

# Visual Studio subscriptions with GitHub Enterprise

## What's on this page

+ ***Eligibility:*** *Learn which Visual Studio subscriptions include GitHub Enterprise.*
+ ***Setup Access:*** *Follow steps for admins and users to link accounts and accept invites.*
+ ***Get Help:*** *Find links to GitHub resources, FAQs, and troubleshooting guides.*

## Overview

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.

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

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:
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:

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