查找未显示结果的结果

今天,VisualStudio2012的“查找结果”特性停止工作。“查找结果”窗口显示摘要信息,但不显示匹配的实际行。以下是“查找结果”窗口中显示的所有内容:

Find all "mytext", Subfolders, Find Results 1, Entire Solution, ""
Matching lines: 40    Matching files: 10    Total files searched: 1129

我已经尝试了微软论坛海报上的所有修复方法:

Http://social.msdn.microsoft.com/forums/en-us/csharpide/thread/1a02f076-29f7-46d1-879a-f8ae6d6abe95

他的解决方案是 重新格式化并重新安装。微软 MSDN 论坛助手的回答令人敬畏:

“很高兴知道你不会被这个奇怪的问题所困扰 ."

有人找到解决这个问题的实际办法了吗?

30037 次浏览

I was able to solve this by running:

Devenv.exe /ResetSettings

from the visual studio command prompt, then running a repair on my visual studio installation.

Still a lengthy fix for such a simple problem, but not quite a reformat.

I was only able to correct this issue by repairing my Visual Studio installation.

Check registry fixes in this thread. That helped me.

To make sure it won't disappear I'm copying the solution from Martin Rosselle here:

Please check if the following registry key is ok. Fixing this solved the issue for me.

  • Copy the text below and save it as .reg file.
  • Go to regedit.exe and import saved .reg file or simply open the file with Registry Editor and click yes when prompted to continue.

Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}]
@="PSFactoryBuffer"


[HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{73B7DC00-F498-4ABD-AB79-D07AFD52F395}\InProcServer32]
@="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\MSEnv\\TextMgrP.dll"
"ThreadingModel"="Both"

This is a known bug in VS that has been around since 2005. Click on the 'find results' box and click ctrl+break a few times.

If that doesn't work for you, there are a few other key combinations that should - take a look here:

No search results in visual studio

This issue was resolved for me after I restarted Visual Studio (2013 in my case). So make sure you try that before you dig into any of the more complicated solutions.

See here: Visual studio search turned out to be a simple shortcut issue, Cntrl+Shift+F instead of Cntrl+F

I had an almost similar problem where the find results window stopped showing the matching lines in code. It did show the files however. The solution was unchecking the "Display file names only" checkbox in the "Find and Replace" window (Ctrl+Shift+F), which I had checked accidentally.

I had a similar problem, I can resolve this issue by removing *\.*'; from the file types input

"Find and Replace" window (Ctrl+Shift+F)

Ctrl+Shift+F