V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
okampfer
V2EX  ›  Atom

atom 的“转到定义”该如何使用?

  •  
  •   okampfer · 2016-02-26 08:57:22 +08:00 · 11304 次点击
    这是一个创建于 2975 天前的主题,其中的信息可能已经有所发展或是发生改变。

    atom的“转到定义”(Go to Declaration)到底是怎么使用的?没有反应呢? Keybinding resolver 显示按键是肯定被捕捉到了的。

    atom 的转到定义跟 sublime text 的使用上有区别?

    还请大家多多指教。

    1 条回复    2016-02-26 09:19:23 +08:00
    faceair
        1
    faceair  
       2016-02-26 09:19:23 +08:00   ❤️ 1
    Go to Declaration 是 symbols-view 插件提供的功能,看 readme ( https://github.com/atom/symbols-view)是需要生成 ctag 配合使用的。生成 ctag 可以使用 https://atom.io/packages/symbol-gen ,不过我没用过你自己研究下。
    如果你不想预生成 ctag ,跟 Sublime Text 那样即时查找定义的,可以使用我写的这个插件 https://atom.io/packages/goto-definition ,不过 Atom 的搜索比 Sublime Text 的会慢一些
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5612 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 06:24 · PVG 14:24 · LAX 23:24 · JFK 02:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.