eclipse 在eclipse中搜索多个字符串
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7482688/
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
Search multiple strings in eclipse
提问by Emil
I need to search throughout the work-space for all files containing "String1" or "String2".How to achieve this in eclipse search ?
我需要在整个工作空间中搜索包含“String1”或“String2”的所有文件。如何在 eclipse 搜索中实现这一点?
回答by Kai
Search
-> File...
In Containing text
enter String1|String2
and check Regular expression
. As scope
you have to select Workspace
Search
->File...
在Containing text
输入String1|String2
并检查Regular expression
. 因为scope
你必须选择Workspace
回答by Droj
If you "pin" a search and open a new search window, the results from both searches will be highlighted throughout.
如果您“固定”一个搜索并打开一个新的搜索窗口,则两个搜索的结果将始终突出显示。