如何在 Eclipse 中启用显示文件位置的栏
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6952614/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to enable the bar showing file location in Eclipse
提问by Ms.D
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.
我想启用应该位于编辑器选项卡下方的“导航”栏。它显示了文件层次结构。例如,如果您有一个 HelloWorld 项目,它会显示: HelloWorld -> src -> SomeClass.java -> main 并且所有不同的位置都是可点击的。我知道您可以使用双箭头将编辑器中的内容链接到包资源管理器中的资源。
回答by Stephan
Additionally to the shortcut in the answer from Eli, there is a button in your toolbar:
除了 Eli 回答中的快捷方式之外,您的工具栏中还有一个按钮:
回答by Eli Acherkan
This feature is called breadcrumbs. From Eclipse help:
此功能称为面包屑。从Eclipse 帮助:
To enable the breadcrumb invoke Toggle Java Editor Breadcrumb in the toolbar or press Alt+Shift+Bin 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.
要启用面包屑,请在工具栏中调用 Toggle Java Editor Breadcrumb 或在 Java 编辑器中按Alt+ Shift+ B。
每个视角都会记住面包屑的启用。例如,面包屑可以在调试透视图中启用,在 Java 透视图中禁用。