不知何故,Visual Studio搜索停止为我工作。每当我搜索“整个解决方案”的一些文本,我得到这样的结果:
找到所有“[无论我正在搜索]”,子文件夹,查找结果 1、“整个解决方案”没有找到匹配的文本。发现是 中途停止。
为什么突然说"没有文件可查"
我在谷歌上找到了一些链接,说按Ctrl + Break或Ctrl + Scroll Lock,但它们似乎都不适合我。
不知何故,Visual Studio搜索停止为我工作。每当我搜索“整个解决方案”的一些文本,我得到这样的结果:
找到所有“[无论我正在搜索]”,子文件夹,查找结果 1、“整个解决方案”没有找到匹配的文本。发现是 中途停止。
为什么突然说"没有文件可查"
我在谷歌上找到了一些链接,说按Ctrl + Break或Ctrl + Scroll Lock,但它们似乎都不适合我。
当前回答
另一个迟到的答案,但我找到了这个问题的另一个“解决方案”。
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.
其他回答
Visual Studio 2012中的搜索解决方案崩溃了。我在三台机器上测试了这个功能,在两台机器上没有工作。我发现,这是工作点击下拉箭头旁边的搜索字段,并选择找到所有。这有点麻烦,因为每次在解中搜索时都要选择下拉。
下面的方法对我很有效。Visual Studio→菜单窗口→重置窗口面板。Visual Studio的大小调整使它隐藏了选项。
我在Visual Studio 2013(更新3)中遇到了同样的问题。之前列出的键组合对我都不起作用。我在文件类型中选择了*.cs。
为了让它工作,我把它改成了*。*,然后回到*.cs -现在它工作了。
另一个迟到的答案,但我找到了这个问题的另一个“解决方案”。
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.
如果您正在搜索多种文件类型,它们必须用;字符,而不是空格。
这将返回正确的结果:
* .cs; * .vb; .js; * .aspx。
这不会返回任何东西:
*.cs *.vb *.js *.aspx
这并不是最初发帖者的问题,但对于那些不知道为什么搜索失败的人来说,这可能就是原因所在。