1. 下载插件开发工具(插件)
When using IntelliJ IDEA 2023.3 or later, the Plugin DevKit plugin must be installed from JetBrains Marketplace (Plugin Homepage) as it is no longer bundled with the IDE.
出自:developing-plugins
2. 创建Plugin项目
3. 使用Java编写
删除kotlin目录,重新创建java资源目录
等待项目构建,第一次会比较慢,要下载一个idea等相关的资源。
4. 创建AuAction文件
<!-- Plugin Configuration File. Read more: https://plugins.jetbrains.com/docs/intellij/plugin-configuration-file.html -->
<idea-plugin>
<!-- Unique identifier of the plugin. It should be FQN. It cannot be changed between the plugin versions. -->
<id>org.one.demo</id>
<!-- Public plugin name should be written in Title Case.
Guidelines: https://plugins.jetbrains.com/docs/marketplace/plugin-overview-page.html#plugin-name -->
<name>Demo</name>
<!-- A d