Does anyone know if its possible to disable the search in "Selection" option when searching in Visual Studio?
I find the search selection really confusing and I never want to search in a selection. Ever! I often copy some code by selecting it first, and then I do a search for something to go and paste the code in, but Visual Studio then by default searches in the selected text, which is not what I want.
I'm interested in a solution that works in at least Visual Studio 2010 and 2012, but 2008 would also be nice.
Visual Studio 17.2 Preview 3 introduces a brand-new All-In-One search experience that merges the existing VS Search (Ctrl + Q) and Go To (Ctrl + T) to allow you to search both your code and Visual Studio features quicker and easier than ever, all in the same place.
To enable the new search experience, go to Tools > Options > Environment > Preview Features > New Visual Studio Search Experience. We would love to get your feedback on the new search experience so please give it a try and let us know what you think!
VS Code allows you to quickly search over all files in the currently opened folder. Press Ctrl+Shift+F and enter your search term. Search results are grouped into files containing the search term, with an indication of the hits in each file and its location.
It has (Finally!!!) been fixed with an option. Following the vote link from acarlon :
In Visual Studio 2015, you can prevent Visual Studio from automatically switching to search in Selection scope by unchecking the following tools-option:
Tools-Options-Environment-Find and Replace-Automatically limit search to selection
Great that the option is only on the automation . So in the (for me extremely rare) cases where the functionality could be handy it is still possible by explicitly selecting the scope "Selection"
ADD: As Lexikos points out in comment, the option of "Selection" is actually quite handy with "Replace", especially "Replace All"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With