Visual Studio“在文件中查找”不起作用 [英] Visual Studio "Find in Files" does not work

查看:723
本文介绍了Visual Studio“在文件中查找”不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在整个解决方案中执行查找文件(Ctrl + Shift + F)时,Visual Studio(2010,Ultimate)找不到任何东西。但是,在搜索当前文档当前项目时,它会发现2次出现。

Visual Studio (2010, Ultimate) finds nothing when I do Find in Files (Ctrl+Shift+F) in the Entire Solution. However, it finds 2 occurrences when searching Current Document or Current Project.

我看到总文件搜索在输出窗口中是一个随机数,与我的解决方案中的文件数不符(小得多)。

I see that the "Total files searched" in the output window is a random number, and does not correspond to the number of files in my solution (is much smaller).

我已经做了 devenv / resetsettings ,但这没有帮助。

I already did devenv /resetsettings but this didn't help.

在所有解决方案中两次连续搜索的输出示例:

Example of output of 2 consecutive searches in "all solution":


查找所有缩放-,子文件夹,保持打开的修改文件,查找结果
1,整个解决方案, *。 vb

匹配行:0匹配文件:0搜索到的文件总数: 24

查找被停止。

Find all "zoom -", Subfolders, Keep modified files open, Find Results 1, "Entire Solution", "*.vb"
Matching lines: 0 Matching files: 0 Total files searched: 24
Find was stopped in progress.

查找所有缩放-,子文件夹,打开修改的文件,查找结果
1,整个解决方案, *。vb匹配行:0匹配文件:0
搜索的文件总数: 32

在progres中停止了查找

Find all "zoom -", Subfolders, Keep modified files open, Find Results 1, "Entire Solution", "*.vb" Matching lines: 0 Matching files: 0 Total files searched: 32
Find was stopped in progress.

我不知道为什么它说查找已停止,因为我等待搜索结束(不要按下任何按钮)。

I don't know why it says "Find was stopped", because I wait the end of search (don't press any buttons).

推荐答案

我想我知道这个众所周知的长期错误:

I think I recognize this wellknown, longstanding bug:

  • https://web.archive.org/web/20100617142305/http://connect.microsoft.com/VisualStudio/feedback/details/105511/find-in-files-says-no-files-were-found-to-look-in-find-was-stopped

当我遇到此问题时,提到的解决方法对我有用

The workaround mentioned there worked for me when I had this problem


我找到了一个提示,可以尝试按Ctrl + ScrollLock进行修复,并且可以正常工作。

I found a tip to try pressing Ctrl + ScrollLock to fix it, and it worked.

我认为大多数人都在报告(Ctrl-)Break 键成功,但是有人说< kbd>(Ctrl-)ScrollLock 代替了

I think most people report success with the (Ctrl-)Break key, but some say (Ctrl-)ScrollLock worked instead

这篇关于Visual Studio“在文件中查找”不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆