2016-08-08 10:15
浏览 476

IntelliJ IDEA:从界面跳转到Go中的实现方法

Is there some shortcut that would allow me after creating method in an interface, select and jump to implementation of that method or give me list of implementations.

I am looking for something like what I get when Cmd+Click and get usage of the interface method.

View After Cmd+Click

But instead of usage of method I need short cut for implementation. Currently I have to copy the method name and search in the project, which does not feels like most efficient way.

I am using intelliJ Idea (Community Edition) 2016.2.2 EAP with Go plugin Version: 0.12.1724.

I have tried Cmd+Alt+b but always getting No implementation found

图片转代码服务由CSDN问答提供 功能建议

在界面中创建方法后,是否有一些快捷方式可以允许我选择并跳转到该方法的实现或 给我实现列表。

我正在寻找类似 Cmd + Click并获得接口方法用法的东西。 \ n


,但是我不需要捷径就能实现方法。 当前,我必须复制方法名称并在项目中进行搜索,这似乎并不是最有效的方法。

我正在将intelliJ Idea(社区版)2016.2.2 EAP与 Go插件版本:0.12.1724。

我尝试了 Cmd + Alt + b ,但是总是得到找不到实现< / code>

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • douyulv6921 2018-05-25 17:38

    This support has been added in Goland (or with go plugin in IntelliJ ultimate) now. Shortcut for the same is Alt+Cmd+B.

    enter image description here

    打赏 评论
  • dongqingcheng2903 2016-08-08 13:05

    No, such shortcut doesn't exist.

    You can use "Find Usage" to determine where the specific interface method is used, but if you want to see all the concrete implementations the current way is to search the entire project for the method name.

    打赏 评论

相关推荐 更多相似问题