Skip to content

Commit e8a0976

Browse files
Merge pull request #12847 from ghogen/code-search-updates
Code search updates
2 parents 05a52d5 + bece261 commit e8a0976

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed
Loading
Loading
92.7 KB
Loading

docs/ide/visual-studio-search.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ If you're using Visual Studio 2022 [version 17.6](/visualstudio/releases/2022/re
3232

3333
With **All-In-One Search**, not only can you search for features, but you can also search your code elements, such as files and symbols.
3434

35-
:::image type="content" source="media/vs-2022/all-one-search.png" alt-text="Screenshot of the All-In-One Search experience in Visual Studio 2022 version 17.6 or later.":::
35+
:::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.":::
3636

3737
The new search experience appears as an option next to the menu bar.
3838

@@ -53,10 +53,14 @@ To quickly get a filtered experience, you can type the corresponding prefixes be
5353
|members |`m:` | **Alt**+**\\** |
5454
|text |`x:` | **Shift**+**Alt**+**F** |
5555

56+
In Visual Studio 17.11 and later, 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.
57+
58+
:::image type="content" alt-text="Screenshot of code search scope options." source="./media/vs-2022/search-code-scope.png" :::
59+
5660
> [!TIP]
5761
> To learn more about the new search experience, see both the [Better search in Visual Studio](https://devblogs.microsoft.com/visualstudio/new-better-search-in-visual-studio/) and [All-In-One Search available in 17.6](https://devblogs.microsoft.com/visualstudio/all-in-one-search-available-in-17-6/) blog posts.
5862
59-
The text filter (**Shift**+**Alt**+**F**) in Code Search is available in preview as of 17.9 Preview 2. See [17.9 Preview 3 brings exciting changes to Code Search
63+
The text filter (**Shift**+**Alt**+**F**) in Code Search is available in preview in Visual Studio 17.9 and later. See [17.9 Preview 3 brings exciting changes to Code Search
6064
](https://devblogs.microsoft.com/visualstudio/17-9-preview-3-brings-exciting-changes-to-code-search/). 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).
6165

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

0 commit comments

Comments
 (0)