How to search all the files in a project in Eclipse

According to a book I have ("Eclipse for Minor Geniuses" or something like that), you can search a set of files by selecting them and then choosing Search | Files.

This does not work for me, even when I have the "Selected Resources" radio button selected. Instead, it searches through every file in the Package Explorer, which contains several projects, including the Android APIDemo (massive).

Is there a way to select all the files in a project (other than clicking them all in turn) and then limiting the Search operation to those files only?

Upvotes: 4

Views: 9462

Answers (3)

user591593
user591593

Reputation:

Not sure if this is what you're looking for, but it's possible to create some working sets and then search through that working set only.

enter image description here

Upvotes: 4

Sameer
Sameer

Reputation: 21

  1. use Ctrl+Shift+R (ie Open Resource Popup).
  2. type File Name in txt Box, eg. *.jsp, scr

Upvotes: 2

JB Nizet
JB Nizet

Reputation: 692211

When I select just the project node in the package tree and choose the "Selected Resources" radio button, it searches all the files of the project in my version of Eclipse.

You can also select an arbitrary file in a project, and choose "Enclosing project".

Upvotes: 6

Related Questions