Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quick find a field or method in Eclipse's workspace

I find it extremely useful to use the Ctrl(cmd)+o shortcut on Eclipse to find a member field or method in a class (and use it again to get the ones from the super class).

However, I would like to know if there is a similar way to quickly search in the project and/or workspace for a field or method you know the name of but not where it is (similarly to how it is done to find a type Ctrl(cmd)+Shift+T or a resource Ctrl(cmd)+Shift+R).

If is not available where can I request it?

like image 396
pablisco Avatar asked Jun 01 '12 14:06

pablisco


People also ask

How do I search a method in Spring Tool Suite?

CTRL + H , You can see Search For box, select Method.

How do I search for a specific method 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.


3 Answers

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.

like image 128
Udo Avatar answered Sep 19 '22 21:09

Udo


The closest thing I know of is the Java Search, which allows you to specify searching for a method, field, class, etc. If you're in the Java or Java Browsing perspective, Ctrl+H will open the Search dialog with Java Search as the selected type.

If you want to request a feature or enhancement, enter it into Eclipse's Bugzilla. Keep in mind that the backlog of feature requests is HUGE, so the most effective way to get yours noticed is to take initiative and submit a patch.

like image 43
E-Riz Avatar answered Sep 21 '22 21:09

E-Riz


With the ctrl+h you will have some more options to search.

Under java search option you may find search for type, method, package, constuctor, field.

Also you may find "Limit To" option to narrow your search result and get precise search result!

like image 43
nKhandhar Avatar answered Sep 21 '22 21:09

nKhandhar