有没有办法在 Eclipse 中搜索包中的文本?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5023716/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 15:48:27  来源:igfitidea点击:

Is there a way to search for text in package in Eclipse?

javaeclipsesearchtextpackage

提问by smuggledPancakes

I usually search for things in Eclipse with ctrl+H. This only allows me to search for text based on file name extensions though. Ctrl+F seems to only search the current document. Is there a way to search text within a package?

我通常用 ctrl+H 在 Eclipse 中搜索东西。不过,这只允许我根据文件扩展名搜索文本。Ctrl+F 似乎只搜索当前文档。有没有办法在包中搜索文本?

回答by dfb

Click on the package in Package Explorer, then hit Ctrl-H and click 'Selected Resources'

单击包资源管理器中的包,然后按 Ctrl-H 并单击“选定的资源”