在Eclipse中,在包资源管理器中,可以按名称查找文件吗? [英] In Eclipse, in the package explorer, can I find files by name?

查看:144
本文介绍了在Eclipse中,在包资源管理器中,可以按名称查找文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您知道Eclipse的首选项窗口(菜单栏:窗口 - 首选项)中有哪些层次结构可以浏览,但您也可以使用文本搜索字段。当您键入该搜索字段时,层次结构将被过滤以仅显示与您键入的条目相匹配的条目。

You know how in Eclipse's Preferences window (menu bar: Window --> Preferences), you have a hierarchy to browse, but you also have a text search field. And as you type into that search field, the hierarchy is filtered to show only entries matching what you typed?

我希望在包资源管理器选项卡中看到相同的功能。
我的包资源管理器层次结构中有100个文件。通常我只想输入一个部分名称,只能看到匹配的条目。

I would love to see the same feature in the Package Explorer tab. I have 100s of files in my Package Explorer hierarchy. Oftentimes I just want to type in a partial name, and see only those matching entries.

这个功能是否存在?有什么关系,会达到同样的目标吗? (搜索,不浏览)?

Does this feature exist? Something related, that would accomplish the same goal? (search, not browse)?

谢谢

推荐答案

做相反的你想做的事情。单击包资源管理器右侧的白色箭头,选择 Filters ... ,然后键入带有通配符的表达式。 Eclipse将显示与此模式匹配的资源。

You can do the opposite of what you want to do. Click on the white arrow on the right of the package explorer, select Filters... and type an expression with wildcards. Eclipse will not show the resources matching this pattern.

您可以使用快捷键 Ctrl + Shift + T kbd>或通常使用 Ctrl + Shift + R 的文件。您可以按照与过滤器相同的方式指定模式。

You can search for classes in your project with the shortcut Ctrl+Shift+T or for files in general with Ctrl+Shift+R. You can specify a pattern in the same way you can do for filters.

这篇关于在Eclipse中,在包资源管理器中,可以按名称查找文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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