How to Display Current Function in Eclipse

Dan picture Dan · Oct 3, 2009 · Viewed 24.7k times · Source

I miss a certain functionality in Eclipse. I would like to know the name of the current function the cursor is currently inside. This is useful when browsing unknown code using the search function, for example.

Any idea how to show it? Maybe a plugin?

Answer

antoni.rasul picture antoni.rasul · Jun 28, 2010

I'm using the "Toggle Breadcrumb" option from toolbar:

Eclipse Breadcrumb button

It shows a nice breadcrumb, ending with current function name.

It's quite handy for me, as Outline becomes cumbersome to use if you have zilions of functions.

It produces the following structure above your Java Editor (truncated at the picture below):

Eclipse Breadcrumb path