Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Search stops working for "Entire Solution"

Somehow Visual Studio search has stopped working for me. Anytime I search "Entire Solution" for some text I get this result:

Find all "[Whatever I was searching for]", Subfolders, Find Results 1, "Entire Solution" No matching text found to look in. Find was stopped in progress.

Why does it suddenly say "No files were found to look in"?

I've found a number of links on Google that say to press Ctrl + Break or Ctrl + Scroll Lock, but none of them seem to work for me.

like image 271
leora Avatar asked May 21 '09 09:05

leora


People also ask

How do I search an entire solution in Visual Studio?

Ctrl + Shift + F – Find in Solution Sometimes you want to search across your entire solution. You can double-click each item in the “Find Results” window to navigate to that instance of the search term you searched for.

How do I search for a file in Visual Studio?

The new experience is available by searching for “Find in Files” or “Replace in Files” in Visual Studio search (Ctrl+Q by default). You can also get to these commands with Ctrl+Shift+F and Ctrl+Shift+H respectively.


2 Answers

I get that problem once in a while. One seemingly nonsensical solution I've found is to click inside the Find Results window (not the Output window). Once the blinking text cursor is visible, hit Ctrl+Break four or five times. This seems to "unblock" whatever causes the problem.

There are reports Ctrl + ScrLk may need to be used instead of Ctrl+Break . If these doesn't work then try Break alone.

Note from Codeguard: I have found an explanation and deterministic solution to this problem

like image 200
djcouchycouch Avatar answered Sep 16 '22 22:09

djcouchycouch


Windows 7 Pro SP1 64-bit, Visual Studio 9.0.30729.1

Didn't Work:

  • Ctrl + Break
  • Ctrl + Scroll Lock
  • Restart of Visual Studio

Worked:

  • Break (in Find Result 1 & 2) (only pressed once)

Source: Comments in Gordon's link...

like image 42
Echelon_Force Avatar answered Sep 19 '22 22:09

Echelon_Force