With the release of 17.9 Preview 3 dropping today, we are bringing some exciting enhancements to the Code Search (also known as All-In-One Search) experience. Since our last update with the search experience, we’ve been hard at work refining the experience and ideating ways to add to the experience. Now, you can search for any word or string of characters across your solution, supplementing file and symbol results from your codebase. You can now search for local variable names, words in comments, parameter names, or any other string of characters across your codebase.
The added text support will help round out your experience using Code Search. If you’re looking for a more specialized text search experience, Find in Files (Ctrl+Shift+F) and Quick Find (Ctrl+F) have more options and functionality.
Where can I find these?
The default Code Search experience (Ctrl+T or Ctrl+,) will include exact text matches when applicable, including items like comments and local variables that weren’t included before. Text results are deprioritized compared to files, types, and members, so it shouldn’t interfere with your current workflow.
For a text-only view, you can filter down to just text results by doing one of the following:
- Click the “text (x:)” button below the search bow,
- Prefix your search query with “x:”,
- Use the keyboard shortcut `Shift+Alt+F`, or
- Go to the menu option “Edit > Go To > Go To Text”.
In the text-only experience, there are also the options to toggle “Match case”, “Match whole word”, and “Use regular expressions” through the button at the far right of the search bar.
Try it out today and let us know what you think.
Full text support in Code Search is available by default in the Preview channel, starting from 17.9 Preview 2. (Edit: We’ve discovered that the feature may not be fully rolled out by default in Previews channels, but you can still enable it by going to “Tools > Options > Environment > Preview Features > Plain text search in All-In-One Search”).
It will also be available in the main release in version 17.9 as a preview feature, where you can turn it on by going to “Tools > Options > Environment > Preview Features > Plain text search in All-In-One Search”.
Closing
We appreciate the time you’ve spent reporting issues/suggestions and hope you continue to give us feedback when using Visual Studio on what you like and what we can improve. Your feedback is critical to help us make Visual Studio the best tool it can be! You can share feedback with us via Developer Community: report any bugs or issues via report a problem and share your suggestions for new features or improvements to existing ones.
Stay connected with the Visual Studio team by following us on YouTube, Twitter, LinkedIn, Twitch and on Microsoft Learn.


It would be nice to have something like the visual assist find in solution where you know parts of what you are looking for, for example you have a method:
VeryLargeMethodName_Action() so you know “Very” and “Action” are parts of it so you search for “Very Action” space meaning AND operation, or maybe OR.
Also an option to ignore comments should be important as well as ignoring generated files as other menitoned. Maybe ignoring files like .config, etc.
And an option to quickly scope to File, Project or Solution, while Solution being the default one would be nice.
Thanks for the feedback, Anthony!
We're looking into making the search experience smarter at handling these sorts of scenarios, but it should currently be capable at searching multiple non-adjacent terms as long as they're in the right order. If this is not the case, please report a problem so the team can look into it.
I've created a new ticket for the suggestion of an option to ignore comments in Code Search. We would appreciate more details there about why this would be helpful and what you're looking for!
Scoping is also a great suggestion that we've been tracking in this ticket....
The code-search needs to be extended to off a Project option. Our product is built by around 7 Solutions which contain between 40 and 150 Projects in each, we need to built all these solutions to build the product. I also have a Master solution where I have combined these into 1 large Solution which has around 430 projects.
It is very hard to zero in on the code of one project within the solution, first as its not supported by "Code Search", and the 2nd is that although the task can be done using the Filter window of...
Thanks for sharing, Peter! We’re looking into adding scope options (similar to Find in Files) to Code Search, as described in this suggestion ticket. We’d appreciate more details about what specific capabilities you need.
Any examples you can share of what you typed in the search box and what you were looking for may also help us better understand your ask.
I wonder when an annoying problem with simple search will be fixed: The search scope changes by itself. Yes, it was reported long time ago and still exists.
Hi Alexandre, would you be able to share the ticket to the report you mention?
I'm still using 17.7 and noticed one glitch. I often paste into the CTRL-, box a full absolute file path which starts with a drive letter. (Its easy to copy paths like this from my source control). That's a very convenient way to automatically and quickly navigate to a specific file.
One problem that results from this is that since DOS path syntax of course starts with something like "c:" or "d:" the search box seems to get confused and thinks I'm trying to enter in one of its own codes like "t:". The effect is that the...
Thank you for sharing these very good points! I’ve added your feedback to this existing suggestion ticket for the team to track. We’re open to suggestions for other syntax.