[英]how do I search a project in solution explorer?
There are more than 600 projects in dozens of folders in my Solution Explorer, not easy to find a project by scrolling in the window.我的解决方案资源管理器中有几十个文件夹中有600多个项目,在窗口中滚动不容易找到项目。
How do I search or quickly locate a project by name?如何按名称搜索或快速定位项目?
Well my way to find a project now, is to open my project folder and look for *.vcxproj
files, which have the same project name and in same hierarchy as Solution Explorer.我现在查找项目的方法是打开我的项目文件夹并查找
*.vcxproj
文件,这些文件与解决方案资源管理器具有相同的项目名称和相同的层次结构。
By this I will know if a project is there, and which folder it will be in the Solution Explorer of VC.通过这个我会知道是否有一个项目,以及它将在 VC 的解决方案资源管理器中的哪个文件夹。
在您的搜索栏中,输入“>of”(不带引号),然后输入您要查找的任何内容。
You should start the command window (located on view - other windows - command window), then type the word: of
and then type your project name and file name, you could only type partial names, it'll autocomplete for you.您应该启动命令窗口(位于视图 - 其他窗口 - 命令窗口),然后输入单词:
of
然后输入您的项目名称和文件名,您只能输入部分名称,它会为您自动完成。
For example, after openning the command window start typing:例如,打开命令窗口后开始输入:
of yourprojectname\web.config
In Visual Studio 2019, there is a search field in the Solution Explorer view:在 Visual Studio 2019 中, 解决方案资源管理器视图中有一个搜索字段:
That feature wasn't there when you asked the question in 2012.当您在 2012 年提出这个问题时,该功能不存在。
Open Solution Explorer.打开解决方案资源管理器。
To the right of the Search keyword entry box there is a magnifying glass icon (or if you've already searched then it becomes an X icon).搜索关键字输入框的右侧有一个放大镜图标(或者如果您已经搜索过,它会变成一个 X 图标)。
To the right of the magnifying glass icon there is a small drop-down triangle.放大镜图标的右侧有一个小的下拉三角形。 Click this triangle to open the Search Options.
单击此三角形可打开“搜索选项”。
Turn off all the search options by unchecking them.通过取消选中所有搜索选项来关闭它们。
Now when you search by your project name, the number of results returned will be greatly reduced, making it simple to spot the project itself.现在,当您按项目名称搜索时,返回的结果数量将大大减少,从而可以轻松发现项目本身。
After selecting the project, you may clear the search term and it will remain selected.选择项目后,您可以清除搜索词,它将保持选中状态。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.