views:

577

answers:

2

somehow visual studio search has stopped working for me. Anytime i search the solution for some text i get this result:

Find all "[What ever i was searching for]", Subfolders, Find Results 1, "Entire Solution" No files were found to look in. Find was stopped in progress.

Does anyone know why it would suddenly say "No files were found to look in ??"

Edit: i found a number of links on google to type in Cntl+ Break or Ctrl+Scroll lock but none of them seem to work for me

+2  A: 

I get that problem once in a while. One seemingly nonsensical solution I've found is to click in the text inside the output window and then hit ctrl-break several times. This seems to "unblock" whatever causes the problem.

Edit: Whoops. Answered too fast. What I meant was you should click inside the Find Results window, not the Output window. Once the blinking text cursor is visible, hit ctrl-break four or five times. That should do the trick.

Steve the Plant
Voodoo like this should go into the undocumented features section ;-)
Onots
You should also note that closing the studio helps. The problem that occurs is the CLR gets hung up on a process and that is what causes the search to not work. It can range from Intellisense to IIS.
Graham
Before I had found that trick, the only way I could get find-in-files to work again was to reboot the machine. Nothing else worked, not even restarting Visual Studio. Thinking back, I don't know if logging out would've fixed it as well.
Steve the Plant
A: 

I get a similar result sometimes when I have been doing regex based searches, then forget to turn the regex filter off again.

Simeon Pilgrim