【问题标题】:IntelliJ Plugin Development: A context item is shown in IDEA but not in WebStormIntelliJ 插件开发:上下文项在 IDEA 中显示,但在 WebStorm 中不显示
【发布时间】:2019-07-12 16:05:23
【问题描述】:

我正在实现一个 IntelliJ IDE 插件,该插件应该适用于所有 Jetbrains IDE。

我创建了一个声明如下的动作:

<actions>
    <group id="MyGroup">
        <add-to-group group-id="EditorPopupMenu"/>
        <action class="my.pkg.MyAction" id="MyAction" text="My Text"/>
    </group>
</actions>

它应该在用户在编辑代码时打开上下文菜单时显示。

问题:虽然相应的上下文项在 IDEA 中存在,但在 WebStorm 中却不存在。

问题:为什么上下文项没有显示在 WebStorm 中?如何确保插件在所有 Jetbrains IDE 中的行为方式相同?

【问题讨论】:

    标签: java intellij-idea webstorm jetbrains-ide intellij-plugin


    【解决方案1】:

    通过添加如下依赖解决:

    <idea-plugin>
        ...
        <depends>com.intellij.modules.lang</depends>
        ...
    </idea-plugin>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-25
      • 1970-01-01
      • 2012-04-10
      • 1970-01-01
      • 2020-02-22
      • 1970-01-01
      相关资源
      最近更新 更多