CLion Plugin Development
CLion is an IntelliJ Platform-based product.
Plugin projects for CLion can be developed using IntelliJ IDEA with the
The configuration of CLion plugin projects follows the methods described in Configuring Plugin Projects using a Product-Specific Attribute, and Configuring the plugin.xml File.
The table below summarizes the
gradle-intellij-plugin attributes to set in the plugin project’s
Click on an entry in the table’s Attribute column to go to the documentation about that attribute.
||Set to the targeted CLion version, e.g.
||No specific declaration is needed.|
||Not needed; the Development Instance will automatically match
The dependency on the CLion APIs must be declared in the
As described in Modules Specific to Functionality table, the
<depends> elements should contain the CLion module, as illustrated in the
plugin.xml snippet below:
<!-- Required for core CLion functionality --> <depends>com.intellij.modules.clion</depends>
Use the Exploring APIs as a Consumer process to identify the JAR files under the External Library
Test your plugin with versions of CLion you intend to support.
When learning new APIs, it is helpful to have some representative projects for reference: