问题
I need to search throughout the work-space for all files containing "String1" or "String2".How to achieve this in eclipse search ?
回答1:
Search
-> File...
In Containing text
enter String1|String2
and check Regular expression
. As scope
you have to select Workspace
回答2:
If you "pin" a search and open a new search window, the results from both searches will be highlighted throughout.
来源:https://stackoverflow.com/questions/7482688/search-multiple-strings-in-eclipse