Eclipse:我怎样才能看到文件结构?

时间:2017-01-14 06:46:19

标签: eclipse intellij-idea keyboard-shortcuts

到目前为止,我一直在使用IntelliJ,并因为原因而切换到Eclipse。 在 IntelliJ 中,我可以通过 Cmd + F12 查看文件结构。它弹出这样的东西:

enter image description here

如何在 Eclipse 中获得类似的内容?

1 个答案:

答案 0 :(得分:1)

根据您的图像,我认为您不是在寻找目录结构,而是代码大纲,它显示类,变量和方法等内容。

enter image description here

可在以下菜单中找到:Window-> Show View -> Outline

enter image description here

如果您正在寻找目录结构,左侧的package explorer将显示您的项目。它可能被最小化,图标是2个小盒子,彼此叠加,如下所示: enter image description here

点击它,它会显示工作区。

相关问题