How to implement generate code action?


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.



1 comment
Comment actions Permalink


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


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"/>

Please sign in to leave a comment.