I wonder, whether there is any way NOT to clear previous find all references results when making a next search?
If I do "find all references" once, the results will appear in "find symbol results window". I am working with a large solution, and if I do "Resolve results" it may take up to several minutes for the results to be resolved. And when I do the next "find all references", previous results will just disappear. Is there any way to keep them - just collapse - and add a new results below and so on... Anyway there is a "clear all" capability to clear the window...
In the new Visual Studio "15" Preview 5 release, our revised Find All References window supports this. Press the padlock icon/button (tooltip “Lock Results”) in the Find All References window’s toolbar, and Visual Studio will locks the results in that window, so that the next Find All References call you make will create a new Tool Window for the results. You can place the new tool window side by side with the previous result set if you wish. We’re improving labelling of this button in later releases.
Related
I use various finds to do basically all my navigation in VS... haven't been back to .NET for a while, and are using VS 2022, but there's a behaviour I can't handle, and I'm wondering how to stop it.
Basically
I have a set of code open in a bunch of tabs.
I hit the key to open the "find in files" window and put in a search
It opens a new pane with find results in it.
Clicking on any file inside the find results opens that file IN THIS NEW PANE
So suddenly I have two sets of editor tabs. I never want two sets of editor tabs.
How do I stop it doing this?
It sounds like your Find Results window is Docked as Tabbed Document. In this case, right click the Find Results tab and select Dock to fix the problem.
Please refer to this for the 2 types of Find results window I've encountered in VS2019 using the Quick find feature (or the default Ctrl+F).
The first image is a window that seems advanced, in that it has grouping of the results (by project, by file), it has other options like the Keep results, and List view toggles, etc etc.
The second image on the other hand is a really plain results list, without the options/features of the first one.
For the first window, I don't remember anymore how I've done it (I've started using VS2019 early last year), and for the succeeding VS installations, I'm only using this with a settings file exported from VS.
For the second window, I tried to reset VS settings (Tools → Import and Export Settings) and selected C#, and when I use quick find and see its results, it is this kind of find results window that is shown.
I really want to reset VS settings, but I cannot lose the features provided by the first Find result window.
Question: How to enable that window?
Sub question if I may - the reason I want to reset VS settings is that changes I make in Text Editor → C# → Code Style does not take effect and is reset (I make the changes, press OK button, open the options window again, and the values are reverted - even after restarting VS). What may have caused this behavior?
VS Version: Enterprise 2019, 16.6.5
It took me some time to figure out. There isn't a Find Result Window 1 and 2 anymore. After you perform a search, in the "Find" results pane, there is a "Keep Results" button. Click this button to lock the pane so that the next time you search, it will create a new "Find" results pane and keep the locked pane visible.
Tools > Options > Environment > Preview Features > Check "Use Previous Find in Files"
Ctrl+Shift+F > Open Result options > Select "Find results table"
Close the Find and Replace tool window and revert the aforementioned "Use Previous Find in Files" setting (optional)
Perform a search (either Find in Files or simply through the standard Ctrl+F find prompt)
Your results will then appear in the advanced tabular "Find results table" window.
Presumably this setting is also found elsewhere but I haven't been able to find it without turning off the Find in Files preview feature.
The Find All References tool is very useful, but I often find myself wishing I could refresh the results, such as:
After changing one of the listed lines such that it no longer references what I did "Find all References" on.
After adding or removing some lines of code, which messes up the "double-click to go to line" feature of the "Find All References" window.
As far as I can tell, there's no way to refresh the results, but I find this hard to believe. Am I overlooking something or is this really a missing feature?
I'm aware I can go to some place where the method/variable/etc. is used, right-click it, and do "Find All References" again, but that's much more tedious than just hitting a Refresh button.
After more investigation, this isn't currently possible. However, there's a request for it in the VS community forum. If you think a Refresh for "Find" or "Find All References" would be useful, please vote for the following requests:
Add a "refresh" button to "find references" (Shift-F12) window
Add a 'Refresh' Button to Find Results tabs
I want to click back and forth, without using keyboard commands and without first clicking the down arrow to reveal one or the other. I just want to see both arrows at once.
No, you cannot do what you want with the Find window in the current 15.9.x version of Visual Studio 2017.
However, if you hit <Ctrl><Shift>-F, you will see the Find and Replace window. If you set Look in to Current Document, then it will behave just like the Find window--except this window displays Find Previous and Find Next buttons--exactly what you want.
My end goal is to have ABSOLUTELY NO HIGHLIGHTING on any text after I click away from it. As you can see, the background of previously selected text does NOT revert after a Replace operation. I've looked for days and continue to find discussions relating to the "inactive selected text," but this does not seem to be the correct area.
Here's a look. Keep in mind that nothing is actually selected here:
I have Visual Studio Express, and in it when you click away from a search and replace or find, the actual search window doesn't close automatically and the highlighting remains there. If I want the highlighting to go away, and when I'm done with the search and replace, I just close the search window. It is not actually a window, but here is what it looks like on mine:
When I close this window, or dialog box or whatever, the highlighting goes away as well.