How to implement generate code action?

Answered

I want to devlope a plugin that will generate certain structure (just like setters and getter in java) for YAML languange. I am not understanding How do I build this plugIn.

 

 

0
1 comment

Hi,

You can take a look at existing implementations, e.g.:

com.intellij.xml.actions.GenerateXmlTagAction

If you implement your generation action, it should be registered under GenerateGroup, e.g., it is done like this for the mentioned XML tag generator:

<action id="GenerateXmlTag" class="com.intellij.xml.actions.GenerateXmlTagAction">
<add-to-group group-id="GenerateGroup" anchor="first"/>
</action>
0

Please sign in to leave a comment.