【问题标题】:View structure of file in Atom在 Atom 中查看文件结构
【发布时间】:2016-08-17 17:12:55
【问题描述】:

我已经习惯了 Eclipse 和 Intellij 等 IDE,并且正在尝试完全切换到 Atom。我无法弄清楚(或找到包)的一些事情: 1、如何在Atom中查看文件的结构。例如一个快捷方式,可以显示文件中的类/方法/变量,以便我可以快速从一个跳转到另一个。 2.如何去声明一个方法或类?当我右键单击时,我将“转到声明”视为选项之一,但它似乎没有做任何事情——至少对于 php 文件。我错过了什么吗?

谢谢。

【问题讨论】:

    标签: github atom-editor


    【解决方案1】:

    对于1.) How to view the structure of the file in Atom. For e.g. a shortcut that would show me the classes/methods/variables in a file so that I can jump from one to the other quickly,您可以使用我刚刚发现的symbols-tree-view,因为我正在寻找相同的功能。您可以浏览类、函数、变量等,然后单击它们到达那里。

    你的问题2.) How to go to the declaration of a method or class? I see "Go to declaration" as one of the options when I right click but it does not seem to do anything -- at least for php files. Am I missing something there?是否也应该这样回答?

    【讨论】:

      【解决方案2】:

      试试这个https://github.com/alibaba/structure-view

      ATOM 编辑器的结构视图,就像 Eclipse 中的大纲视图或 IDEA / WebStorm 中的结构工具窗口一样,通过树形视图提供源代码符号的快速导航。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-03-25
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多