Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable the bar showing file location in Eclipse

I want to enable the "navigation" bar that is supposed to just below the tabs in the editor. It shows what the file hierarchy is. For example if you had a HelloWorld project it shows: HelloWorld -> src -> SomeClass.java -> main And all the different locations are clickable. I know you can use the double arrows to link what is in the editor to the resource in the package explorer.

like image 739
Ms.D Avatar asked Aug 05 '11 07:08

Ms.D


People also ask

How do I show location in Eclipse?

Use Alt+Enter on the project Name in Eclipse to see the complete path of the project directory where it resides.

How do I get the navigation bar back in Eclipse?

In menu bar, you can select "Window" -> "Show View", and then select "Project Explorer" (or other components you want to open).

How do I view file explorer in Eclipse?

To view the project explorer, click on Window menu then, click on Show View and select Project Explorer. There is simpler way to open project explorer, when you are in the editor press alt + shift + w and select project explorer.


2 Answers

Additionally to the shortcut in the answer from Eli, there is a button in your toolbar: breadcrumps

like image 84
Stephan Avatar answered Sep 28 '22 00:09

Stephan


This feature is called breadcrumbs. From Eclipse help:

To enable the breadcrumb invoke Toggle Java Editor Breadcrumb in the toolbar or press Alt+Shift+B in the Java editor.

The enablement of the breadcrumb is remembered for each perspective. The breadcrumb can for example be enabled in the debug perspective and be disabled in the Java perspective.

like image 34
Eli Acherkan Avatar answered Sep 28 '22 00:09

Eli Acherkan