解决方案资源管理器:将搜索限制为选定的文件夹 [英] Solution Explorer: limit search to selected folder

查看:201
本文介绍了解决方案资源管理器:将搜索限制为选定的文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

效率方面的问题,当在项目的特定子文件夹中查找文件时,如何将在Visual Studio的解决方案资源管理器中进行的搜索仅限于所选文件夹?

A question of efficiency, when looking for a file within specific sub-folder of a project, how can I limit the search in Visual Studio's Solution Explorer just to the selected folder(s)?

在解决方案资源管理器中键入查询将搜索 all 项目和 all 文件夹,从而提供了绝大多数的误报,并使其搜索框实际上变得无用.
我现在知道的唯一方法是在Windows资源管理器搜索框中键入RMB -> Open Folder in File Explorer ->,然后返回Visual Studio并手动滚动到知道其确切名称的文件.不用说,以诸如文件搜索之类的简单操作退出IDE并不是很方便.

Typing query in Solution Explorer's will search all projects and all folders, giving vast majority of false positives and rendering its search box effectively useless.
The only way I am aware of right now is to RMB -> Open Folder in File Explorer -> type query in Windows Explorer search box, then go back to Visual Studio and manually scroll to the file knowing its exact name. Needless to say, exiting IDE for something as simple as file search is not very convenient.

推荐答案

在解决方案资源管理器中,右键单击相关文件夹,然后选择此范围";现在,该文件夹成为您的解决方案资源管理器的根,并且搜索仅适用于可见内容.您可以通过箭头按钮返回.

In Solution Explorer, right click on the concerning folder and select "Scope To This"; now that folder becomes the root of your Solution Explorer and the search only applies to the visible content. You go back via the arrow buttons.

这篇关于解决方案资源管理器:将搜索限制为选定的文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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