不知何故,Visual Studio搜索停止为我工作。每当我搜索“整个解决方案”的一些文本,我得到这样的结果:

找到所有“[无论我正在搜索]”,子文件夹,查找结果 1、“整个解决方案”没有找到匹配的文本。发现是 中途停止。

为什么突然说"没有文件可查"

我在谷歌上找到了一些链接,说按Ctrl + Break或Ctrl + Scroll Lock,但它们似乎都不适合我。


当前回答

Ctrl + F和Ctrl + Shift + F在Visual Studio 2015社区版中停止工作。

我的朋友告诉我:

工具→导入导出设置: 选择:重置所有设置→下一步 选择:不,只是重置设置,覆盖我的当前设置→下一步 选择:常规→完成

其他回答

另一个迟到的答案,但我找到了这个问题的另一个“解决方案”。

When it looks as if the Visual Studio app has frozen on search...leave it alone. Don't close it. Don't restart it. Just let it go for about 10-15 minutes and the problem may correct itself, as it did in my specific case. I'm not sure as to why leaving it alone solved the problem, although my wholly uneducated guess is that Visual Studio is building some sort of an index to be able to search files and running into a snag. Once the 10-15 minutes are up and VS completes its search, it seems fine after that.

尝试了所有的解决方案,但我的问题是我不小心在我的窗口上换成了另一种语言的键盘,在我换回英文键盘后,它工作了,最后我可以ctrl +衬衫+ f

我在Visual Studio 2013(更新3)中遇到了同样的问题。之前列出的键组合对我都不起作用。我在文件类型中选择了*.cs。

为了让它工作,我把它改成了*。*,然后回到*.cs -现在它工作了。

Windows 7 Pro SP1 64位,Visual Studio 9.0.30729.1

不工作:

Ctrl + Break Ctrl +滚动锁定 重启Visual Studio

工作:

中断(在查找结果1和2中)(只按一次)

来源:戈登链接中的评论…

这个bug在Visual Studio中已经存在很长时间了,而且似乎从来没有得到修复。

查看2004年的MS Connect项目:http://connect.microsoft.com/VisualStudio/feedback/details/105511/find-in-files-says-no-files-were-found-to-look-in-find-was-stopped

我不敢相信他们仍然没有在VS2010中修复它-但它仍然在那里:(

连接项已标记为关闭-不会修复:https://connect.microsoft.com/VisualStudio/feedback/details/718217/find-was-stopped-in-progress-while-performing-search-in-visual-studio