Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does a "Find in project..." feature exist in Eclipse IDE?

Tags:

find

eclipse

Does Eclipse have a way to search a whole project for some text like Xcode's "find in project" feature?

like image 389
William Jockusch Avatar asked Jul 04 '10 14:07

William Jockusch


People also ask

How do I do a project search in Eclipse?

The Eclipse search dialog box allows you to search for files that contain a literal or a character pattern in the entire workspace, a set of projects, a specific project or folders selects in the package explorer view. Clicking on the Search menu and selecting Search or File or Java. Clicking Ctrl + H.

How do I search for a word in Eclipse workspace?

Press Ctrl + H , should bring up the search that will include options to search via project, directory, etc. Ctrl + Alt + G can be used to find selected text across a workspace in eclipse.

How do I search a field in Eclipse?

ctrl+o ( cmd+o ) opens the quick outline where you can search for a method within the current class. Pressing ctrl+o again extends the search scope to the complete class hierarchy.

How do I search for a class in a project in Eclipse?

To get there, we go to the menu under Navigate > Open Type in Hierarchy or we use the shortcut: Ctrl + Shift + H on a PC or Cmd + Shift + H on a Mac. This dialog is similar to the Open Type dialog. Except for this time when we click on a class, then we get the Type Hierarchy view.


2 Answers

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

OSX: ⌥ Option + ⌘ Command + G

like image 21
Jainendra Avatar answered Sep 22 '22 05:09

Jainendra


1. Ctrl + H
2. Choose File Search for plain text search in workspace/selected projects

For specific expression searches, choose the relevant tab (such as Java Search which allows you to search for specific identifiers)

For whole project search:

3. Scope (in the form section) > Enclosing project (Radio button selection).

like image 150
Yuval Adam Avatar answered Sep 21 '22 05:09

Yuval Adam