Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Eclipse allows you to search its code using Edit->Find/Replace. This allows you to search only one file at a time. Is it possible to search for a text in a whole Eclipse project instead of searching file by file

share|improve this question
up vote 12 down vote accepted

You can navigate to

Search >> File

When in you can then specify your string and a working set. Set the working set to your project folder. Depending on how picky you want to be you can set the file name patterns too. I have not tried but I am assuming you can do *.* to search everything under the sun.

You can use the below image as a reference (I used Eclipse - Galileo). I searched for the string "System" and got results for my class file and my interface file. Once you search all occurances will show up in a search tab (normally docked on the bottom of the screen).

Each instance can be double-clicked to take you to that specific occurance.

enter image description here

share|improve this answer
    
This helped me as I was using the wrong tab first, thinking "Java Search" would be good enough. – Amani Kilumanga May 10 at 2:46

You can also use the Ctrl+H shortcut to search files in Eclipse project.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .