Eclipse:快速搜索文件名
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10637702/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse: quick search on filename
提问by Aleksandr Kravets
Very often while working in Eclipse I realize that I remember class name, but forgot in which package this class is. Using Search is not very convenient. Too many clicks and key presses. I wonder, is there a plugin to simplify this process? For example, would be great if there was text-edit box in the top of package explorer which could filter showing packages and .java files depending of entered text. Anyone knows something like that?
在 Eclipse 中工作时,我经常意识到我记得类名,但忘记了这个类在哪个包中。使用搜索不是很方便。点击次数和按键次数过多。我想知道,有没有插件可以简化这个过程?例如,如果包浏览器顶部有文本编辑框,它可以根据输入的文本过滤显示包和 .java 文件,那就太好了。任何人都知道这样的事情?
回答by Rangi Lin
Eclipse does provide similar functions:
Eclipse 确实提供了类似的功能:
Open Resource Shift+Ctrl+Rfor all resource files (including Java files)
打开资源Shift+ Ctrl+R的所有资源文件(包括Java文件)
Open Type Shift+Ctrl+Tfor all Java classes in classpath.
开放型Shift+ Ctrl+T中类路径中所有的Java类。
They also filter the list as you type.
他们还会在您键入时过滤列表。
Note that they search all files of all opened projects in current workspace.
请注意,它们搜索当前工作区中所有打开项目的所有文件。