不知何故,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 2010才对我有用。
我偶尔也会遇到这种问题。我发现的一个看似毫无意义的解决方案是单击“查找结果”窗口(而不是“输出”窗口)。一旦看到闪烁的文本光标,按Ctrl+Break四到五次。这似乎可以“解除”引起问题的任何原因。
有报告称可能需要使用Ctrl+ ScrLk而不是Ctrl+Break。如果这些都不管用,那就单独试试Break。
Codeguard的注释:我已经找到了这个问题的解释和确定的解决方案
下面的方法对我很有效。Visual Studio→菜单窗口→重置窗口面板。Visual Studio的大小调整使它隐藏了选项。
另一个迟到的答案,但我找到了这个问题的另一个“解决方案”。
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.
滚动锁定和打破的组合对我来说没有任何作用。作为一种变通方法,我将解决方案目录添加到Search Folders(第二个省略号按钮),然后将Look In字段更改为解决方案目录。根本问题仍然存在,但对我来说,这在功能上是一样的。
(Visual Studio 2013, Windows 8.1, x64)