JaneNY
JaneNY

Reputation: 2121

Search in Eclipse through project

How to search in Eclipse through project for some word ? When I start CTRL-h I need to choose field, method or ...., but I need to find all occurences in project no metter method, field or .. ! How to achieve that ?

Upvotes: 19

Views: 47209

Answers (4)

william.eyidi
william.eyidi

Reputation: 2365

In order to accomplish it you need to customize your research:

Ctrl + H

then at the bottom of the search window click on Customize

check only FileSearch and unselect the rest of the options

then you can search for anywork in the project by selecting either worksapce or Enclosing project

Upvotes: 4

Moak
Moak

Reputation: 12885

CTRL + H -> File Search -> Containing Text 'some word'
make sure the scope is set to workspace or enclosing projects. Choosing Selected Resources will narrow the result set to the folder or file you selected in the explorer.

Further if you know the file type that might contain the text you can use the File Name patterns with values like *.php, *.phtml, *.html

Upvotes: 40

Andrejs
Andrejs

Reputation: 27737

If you are using InstaSearch Eclipse plugin you can easily filter searches by project:

proj:MyProjectName textToFind

or use ui to select a project to search in.

Upvotes: 1

keinabel
keinabel

Reputation: 1052

Ctrl + Alt + G might help finding Text in the new Version of Eclipse 3.7.

Upvotes: 9

Related Questions