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

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

Search multiple strings in eclipse

regexeclipsesearch

提问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 textenter String1|String2and check Regular expression. As scopeyou 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.

如果您“固定”一个搜索并打开一个新的搜索窗口,则两个搜索的结果将始终突出显示。