【问题标题】:Custom plugin with live templates not working in PHPStorm but does in Intellij IDEA?带有实时模板的自定义插件在 PHPStorm 中不起作用,但在 Intellij IDEA 中起作用?
【发布时间】:2014-02-06 03:38:13
【问题描述】:

我刚刚创建了一个基本插件,它基本上向 PHPStorm 添加了一个 live-template / sn-p。

我通过将文件压缩在一起来安装它,进入 PHPStorm > 设置 > 插件并单击“从磁盘安装插件”。选择正确的 zip 文件后,它出现在插件列表中,要求我重新启动并且一切正常 - 或者至少我是这么认为的!

我的问题是,当我返回设置 > 实时模板时,新的 liveTemplate 组没有显示,当我尝试使用“test-tag”后跟 TAB 触发实时模板时,它只会扩展为“”这不是预期的行为。为什么会这样??

https://github.com/JasonMortonNZ/test-phpstorm-plugin

注意: 奇怪的是,当我在 Intellij IDEA 13 中安装插件时,它可以完美运行。实时模板组出现在设置中,实时模板触发正常!为什么会这样?好郁闷:(

【问题讨论】:

    标签: intellij-idea phpstorm jetbrains-ide


    【解决方案1】:

    请参阅http://confluence.jetbrains.com/display/IDEADEV/Plugin+Compatibility+with+IntelliJ+Platform+Products,了解如何使您的插件与其他基于 IntelliJ 平台的 IDE 兼容。

    【讨论】:

    • 我没有使用任何特定于平台的模块,所以我是否认为因为我没有包含任何模块依赖标签,所以它只与 Intellij IDEA 兼容?如果我添加' com.intellij.modules.lang' 这会有帮助吗?
    • 嗨,Yann,我已经更新了我的代码,但仍然不开心。在 Intellij IDEA 中仍然可以正常工作,但在 PHPStorm 中不行? github.com/JasonMortonNZ/test-phpstorm-plugin
    • 已解决:我必须同时添加:com.intellij.modules.langcom.intellij.modules.platform
    猜你喜欢
    • 1970-01-01
    • 2017-08-18
    • 1970-01-01
    • 2012-11-26
    • 1970-01-01
    • 1970-01-01
    • 2011-09-30
    • 2021-12-22
    • 1970-01-01
    相关资源
    最近更新 更多