-->

Search multiple strings in eclipse

2020-02-19 10:46发布

问题:

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.