Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Search multiple strings in eclipse

Tags:

I need to search throughout the work-space for all files containing "String1" or "String2".How to achieve this in eclipse search ?

like image 999
Emil Avatar asked Sep 20 '11 09:09

Emil


People also ask

How do I search for multiple words in eclipse?

Use the built-in Eclipse Search dialog. The Search menu contains multiple items (Search→ Search, Search→ File, Search→ Help, and Search→ Java), but all of them open the same dialog.

How do I search for a string in an entire project in eclipse?

Ctrl + Alt + G can be used to find selected text across a workspace in eclipse.

How do I search for specific packages in eclipse?

Ctrl+H opens the search dialog which you can use to search for packages. Show activity on this post. Click on the root package and start typing the name of the package you are looking for.


1 Answers

Search -> File... In Containing text enter String1|String2 and check Regular expression. As scope you have to select Workspace

like image 136
Kai Avatar answered Sep 20 '22 08:09

Kai