简体   繁体   English

如何在解决方案资源管理器中搜索项目?

[英]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 年提出这个问题时,该功能不存在。

  1. Open Solution Explorer.打开解决方案资源管理器。

  2. 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 图标)。

  3. To the right of the magnifying glass icon there is a small drop-down triangle.放大镜图标的右侧有一个小的下拉三角形。 Click this triangle to open the Search Options.单击此三角形可打开“搜索选项”。

  4. Turn off all the search options by unchecking them.通过取消选中所有搜索选项来关闭它们。

  5. 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.现在,当您按项目名称搜索时,返回的结果数量将大大减少,从而可以轻松发现项目本身。

  6. After selecting the project, you may clear the search term and it will remain selected.选择项目后,您可以清除搜索词,它将保持选中状态。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 解决方案资源管理器项目树中的奇怪节点。 我该如何摆脱它们。? - Strange nodes in Visual Studio Solution Explorer project tree. How do I get rid of them.? 如何在解决方案资源管理器中显示 References 文件夹而不在 VB.NET 项目中选择“显示所有文件”? - How do I show the References folder in Solution Explorer without selecting 'Show All Files' in a VB.NET project? 如何更改解决方案资源管理器的字体大小(在 Visual Studio 中) - How do I change the font size of Solution Explorer (in Visual Studio) 我如何安装不是一个项目而是解决方案 - How do I install not one project but solution 在VS 2017自定义项目系统中,如何在解决方案资源管理器中使项目项变为粗体? - In a VS 2017 custom project system, how can I make a project item bold in the Solution Explorer? 我是否必须退出Visual Studio for Team Explorer以检测我的Solution.sln中的“删除项目”更改? - Do I have to exit Visual Studio for Team Explorer to detect “Remove project” changes in my Solution.sln? 在解决方案资源管理器中更改项目文件夹后,命名空间未更新 - Namespace not updating after I alter my project folder in solution explorer 如何将 NuGet 包安装到解决方案的第二个项目中? - How do I install a NuGet package into the second project in a solution? 我如何告诉 cmake 将解决方案和项目分开? - How do I tell cmake to separate the solution and the project? 如何在其他解决方案中引用项目的输出? - How do I reference the output of a project in a different solution?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM