Augtons / Serial-Berry

Serial Berry is a serial debug plugin for intellij IDEs. such as CLion.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clion Plugin 模板

1. 插件工程结构:

.
|   # 构建脚本
├─ build.gradle.kts
|
|   # 这个文件包含了插件信息,版本,编译版本范围
|   # 会被build.gradle.kts访问并填入适当位置
├─ gradle.properties  
|
|   # 设置文件,不过这里边好像只有一个工程名
├─ settings.gradle.kts
|
|   # 其余未列出的文件无需特别关注
|
└─src
    └─main
       ├─java #这里包含了所有Java源文件
       │  └─com.template.clionplugin  #包名
       │           └─java程序文件
       ├─kotlin #这里包含了所有Kotlin源文件
       │  └─com.template.clionplugin  #包名
       │           └─ kotlin程序文件
       └─resources  #资源文件
           ├─messages
           │   └─ MyBundle.properties
           └─META-INF
                ├─plugin.xml      #插件清单
                └─pluginIcon.svg  #默认插件图标

2. 此模板中自带的功能

模板中还自带了几个小功能,分别为

功能 现有的功能 对应源文件 位置
工程管理器监听器 监听“打开工程”这一事件,当打开工程的时候,获取或创建工程服务 MyProjectManagerListener.kt src/main/kotlin/包名/listeners/
应用服务 IDE被启动时,输出一句“applicationService MyApplicationService.kt src/main/kotlin/包名/services/
工程服务 该服务被启动时(由上述的监听器启动),输出一句“Project service: +工程名” MyProjectService.kt src/main/kotlin/包名/services/

3. 改动

已将平台改为 CLion

修改了 gradle.properties

platformType = CL  #将平台改为CLion('CL'对应CLion)
platformVersion = 2021.2.2 






朴实无华的的分割线




以下为github工程模板原内容

Template ToDo list

This Fancy IntelliJ Platform Plugin is going to be your implementation of the brilliant ideas that you have.

This specific section is a source for the plugin.xml file which will be extracted by the Gradle during the build process.

To keep everything working, do not remove <!-- ... --> sections.

Installation

  • Using IDE built-in plugin system:

    Settings/Preferences > Plugins > Marketplace > Search for "ClionPlugin" > Install Plugin

  • Manually:

    Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...


Plugin based on the IntelliJ Platform Plugin Template.

About

Serial Berry is a serial debug plugin for intellij IDEs. such as CLion.

License:MIT License


Languages

Language:Kotlin 74.5%Language:Java 21.6%Language:Python 4.0%