diff --git a/docs/ide/find-in-files.md b/docs/ide/find-in-files.md index ca48e5b0889..d32d4abd93d 100644 --- a/docs/ide/find-in-files.md +++ b/docs/ide/find-in-files.md @@ -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 @@ -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 @@ -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. diff --git a/docs/ide/finding-and-replacing-text.md b/docs/ide/finding-and-replacing-text.md index 7e83e5f6ca8..d0cfc3fb6a2 100644 --- a/docs/ide/finding-and-replacing-text.md +++ b/docs/ide/finding-and-replacing-text.md @@ -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. @@ -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: @@ -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). @@ -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. diff --git a/docs/ide/media/visualstudio/find-file-exclusions-find-in-files-toggle.png b/docs/ide/media/visualstudio/find-file-exclusions-find-in-files-toggle.png new file mode 100644 index 00000000000..ecace6985e0 Binary files /dev/null and b/docs/ide/media/visualstudio/find-file-exclusions-find-in-files-toggle.png differ diff --git a/docs/ide/media/visualstudio/find-file-exclusions.png b/docs/ide/media/visualstudio/find-file-exclusions.png new file mode 100644 index 00000000000..5bc8db219f5 Binary files /dev/null and b/docs/ide/media/visualstudio/find-file-exclusions.png differ diff --git a/docs/ide/media/visualstudio/find-files.png b/docs/ide/media/visualstudio/find-files.png new file mode 100644 index 00000000000..66c4a328fef Binary files /dev/null and b/docs/ide/media/visualstudio/find-files.png differ diff --git a/docs/ide/visual-studio-search.md b/docs/ide/visual-studio-search.md index c37c064b06c..3044135524c 100644 --- a/docs/ide/visual-studio-search.md +++ b/docs/ide/visual-studio-search.md @@ -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 @@ -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 @@ -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 @@ -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) diff --git a/subscriptions/_img/vs-tech-support/visual-studio-tech-support-tile-rev.png b/subscriptions/_img/vs-tech-support/visual-studio-tech-support-tile-rev.png new file mode 100644 index 00000000000..84b9911133a Binary files /dev/null and b/subscriptions/_img/vs-tech-support/visual-studio-tech-support-tile-rev.png differ diff --git a/subscriptions/access-github.md b/subscriptions/access-github.md index d2b959c572e..814b0a45b57 100644 --- a/subscriptions/access-github.md +++ b/subscriptions/access-github.md @@ -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. @@ -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 . 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 . 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.") diff --git a/subscriptions/vs-tech-support.md b/subscriptions/vs-tech-support.md index 2da6bafdfc2..8759ff9bbb2 100644 --- a/subscriptions/vs-tech-support.md +++ b/subscriptions/vs-tech-support.md @@ -1,16 +1,16 @@ --- -title: Activate Technical Support for subscriptions +title: Use Technical Support for subscriptions author: joseb-rdc ms.author: amast manager: shve -ms.date: 08/11/2025 +ms.date: 09/29/2025 ms.topic: how-to -description: Activate the technical support benefit included with your Visual Studio subscription, locate supported products and resources, and learn how to submit incidents. +description: Use the technical support benefit included with your Visual Studio subscription, locate supported products and resources, and learn how to submit incidents. ms.custom: sfi-image-nochange --- -# Activate and use the Technical Support benefit in Visual Studio subscriptions +# Use your Technical Support benefit in Visual Studio subscriptions -The Technical Support benefit in Visual Studio subscriptions is for resolving break-fix issues in **non-production environments** for products that are still in the mainstream support phase of the [support lifecycle](https://support.microsoft.com/lifecycle/search). Visual Studio Enterprise standard and annual cloud subscriptions receive four incidents, while Visual Studio Professional standard and annual cloud subscriptions receive two incidents, for up to one year from benefit activation. Benefit activation must occur while the subscription is current. +The Technical Support benefit in Visual Studio subscriptions is for resolving break-fix issues in **non-production environments** for products that are still in the mainstream support phase of the [support lifecycle](https://support.microsoft.com/lifecycle/search). Visual Studio Enterprise standard and annual cloud subscriptions receive four incidents, while Visual Studio Professional standard and annual cloud subscriptions receive two incidents, for up to one year from obtaining your **Contract ID** and **Access ID**. Benefit setup must occur while the subscription is current. > [!NOTE] > Microsoft no longer offers Visual Studio Professional Annual subscriptions and Visual Studio Enterprise Annual subscriptions in Cloud Subscriptions. There's no change to existing customers experience and ability to renew, increase, decrease, or cancel their subscriptions. New customers are encouraged to go to to explore different options to purchase Visual Studio subscriptions. @@ -35,14 +35,14 @@ Product level descriptions: Expand **Unavailable support plans**. If you see **S > - Microsoft Graph > - Microsoft Outlook -## How to activate the benefit +## How to use the benefit > [!NOTE] -> The following steps apply to activation of the benefit in **English** only. For other languages, visit , scroll to the bottom, and select **Account, Subscription and Billing Support** and then select your country/region from the drop-down list. +> The following steps apply to obtaining a **Contract ID** and **Access ID** in **English** only. For other languages, visit , scroll to the bottom, and select **Account, Subscription and Billing Support** and then select your country/region from the drop-down list. -1. Go to , scroll down to the Support section, and on the Technical Support tile select **Chat to activate**. +1. Go to , scroll down to the Support section, and on the Technical Support tile select **Get Help**. > [!div class="mx-imgBorder"] - > ![Technical Support Benefit Tile](_img/vs-tech-support/vs-tech-support-tile.png "Screenshot of the Technical Support tile. The chat to activate button is highlighted.") + > ![Technical Support Benefit Tile](_img/vs-tech-support/visual-studio-tech-support-tile-rev.png "Screenshot of the Technical Support tile. The Get Help button is highlighted.") 2. You join a chat session with a representative who can create your **Contract ID** and **Access ID** and provide those numbers to you via email so you have them for your records. 3. To complete the process, you need to provide the representative with: @@ -59,7 +59,7 @@ Product level descriptions: Expand **Unavailable support plans**. If you see **S ## How to submit an incident using your benefit -**To submit a support request using the benefit, you must first activate it. Follow the steps in the previous section to complete the activation.** +**To submit a support request using the benefit, you must first obtain a Contract ID and Access ID. Follow the steps in the previous section to complete the process.** When you have your **Contract ID** and **Access ID** set up, you can use it to submit a Tech Support incident. @@ -116,7 +116,7 @@ To use your Visual Studio subscription technical support benefit for issues rela | MSDN Platforms (Standard) | VL, Retail | 2 incidents | Yes | | Visual Studio Enterprise, Visual Studio Professional (monthly cloud) | Azure | Not available | NA | -1 *Includes: Student Ambassadors. Excludes: Not for Resale (NFR), Visual Studio Industry Partner (VSIP), Microsoft AI Cloud Partner Program (MAICPP), Full Time Employee (FTE), Microsoft Certified Trainer (MCT) Software & Services Developer, Most Valuable Professional (MVP), Regional Director (RD), Not for Resale Basic (NFR Basic), Independent Software Vendor (ISV), Bug Bounty Program, Microsoft Startups.* +1 *Includes: Student Ambassadors.

Excludes: Not for Resale (NFR), Visual Studio Industry Partner (VSIP), Microsoft AI Cloud Partner Program (MAICPP), Full Time Employee (FTE), Microsoft Certified Trainer (MCT) Software & Services Developer, Most Valuable Professional (MVP), Regional Director (RD), Not for Resale Basic (NFR Basic), Independent Software Vendor (ISV), Bug Bounty Program, Microsoft Startups.* Not sure which subscription you're using? Connect to [https://my.visualstudio.com/subscriptions](https://my.visualstudio.com/subscriptions?wt.mc_id=o~msft~docs) to see all the subscriptions assigned to your email address. If you don't see all your subscriptions, you might have one or more assigned to a different email address. You need to sign in with that email address to see those subscriptions.