The Eclipse IDE searches for a function with the given name.

How to search for a partifular function in a specific project in Eclipse, for example, if I want to find a function called xyz , how can I do this?

+6
java eclipse
source share
5 answers

Use "Java Search" in the search menu or move the cursor to the function name in the source and press Ctrl + Shift + G (-> search for links in the workspace).

[EDIT] If you don’t know which class this function is in, use a text search (called File Search). Enter a name in the search field, and then limit the search to "* .java" files.

+6
source share

If you don’t know where the method is located, use text search with the root of your entire project, work set, or even the whole work area, if you really don’t know where it can be; Search β†’ File ... displays a dialog box that allows you to enter exactly what you are looking for. You will need to look through everything that it finds (using the search box) to determine the real match among the false positives, but this is better than nothing.

+1
source share

You can write code that uses this function, and then use the [Ctrl] + [Click] trick to jump to its implementations.

0
source share

Check out nWire for Java . It has a quick search feature: start typing and it will instantly show results that include types, interfaces, methods, fields and other artifacts. It has many more features.

0
source share

In Eclipse Neon 4.6 there is CTRL + H (from the menu Search β†’ Search), then we can use the tabs "Search for files" or "Search in Java". both very useful

0
source share

All Articles