Intellij-添加对另一个插件的依赖

时间:2019-06-11 21:39:31

标签: gradle intellij-plugin

我正在尝试使用PSI为Intellij实现Golang代码生成/自动完成插件,因此我需要在Golang插件上添加依赖项。这看起来像我想做的-https://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies.html

现在的问题是如何确定我正在使用的插件的ID以及名称和版本? It does not seem to be anywhere in the plugin preferences

PSI元素属于com.goide.psi.impl.GoTypeImpl类,并且类似。

2 个答案:

答案 0 :(得分:1)

没有简单的方法来获取插件ID。您可以检查plugin.xml来获取它。对于Go插件,它是org.jetbrains.plugins.go

版本可以在plugin page上找到。

答案 1 :(得分:1)

有一个简单的方法可以做到。

versionxmlId均可在particular plugin update page上找到:

update plugin page

相关问题