How to add items to the "embedded" group (instead of "Other") in Clion's New Project wizard window

Answered

As shown in the figure, the "embedded" group at bottom is where I want to add to. But I can only add to "Other" group.

Or if possible, is there any way to create a new group like them.

I looked at the source code of a plugin named "PlatformIO" on Github and found a Class named CLionProjectGenerator which might work. But now I can't import it anyway in my project.

their source code: https://github.com/JetBrains/intellij-plugins/blob/e1a1388241e36c07d8f273aefdb107eba3cd9949/platformio/src/com/jetbrains/cidr/cpp/embedded/platformio/project/PlatformioProjectGenerator.java

Has the Class been moved or deprecated, and if so, how should I need to do to achieve my purpose.

 

my build.gradle.kts

Thanks a million, even if my problem will not be solved perfectly

0
2 comments

Hi,

You pasted the list of the Gradle plugins which are used to extend Gradle. It is unrelated to the plugin functionality, so it is irrelevant in the context of this topic.

You should add the dependency on CLion functionality. Take a look at the table on this page:
https://plugins.jetbrains.com/docs/intellij/plugin-compatibility.html#modules-specific-to-functionality

So in plugin.xml add:

<depends>com.intellij.clion</depends>

and in intellij task configuration in build.gradle.kts:

intellij {
...
plugins.set("com.intellij.clion")
}

If you used IntelliJ Platform Plugin Template, then just add it to the platformPlugins property in gradle.properties file.

Also, if you write a plugin for CLion, remember to change platformType to CL:

intellij {
...
type.set("CL")
}

or set platformType = CL in gradle.properties if you used template.

Now you should see the CLionProjectGenerator class available to your project.

1

Thank you for enlightening me, I succeeded in finding this passage in the official documentation.

(Path VIII) https://plugins.jetbrains.com/docs/intellij/plugin-compatibility.html#modules-specific-to-functionality

Thanks for your guidance!

0

Please sign in to leave a comment.