Code generation in new file.

Hello.

I recently discovered live templates and they are a great tool.

I'm trying to figure out can I create code generation template in this menu? Specifically I would like to generate a new file with some code within this menu context. Is something like that possible?

 

0
1 comment

neither live nor file templates are available from this menu. If you like to add a custom action to it, you need developing a new intention: https://plugins.jetbrains.com/docs/intellij/code-intentions.html

See the conditional_operator_intention sample plugin

Note that we have a special forum for questions regarding plugins development - https://intellij-support.jetbrains.com/hc/en-us/community/topics/200366979-IntelliJ-IDEA-Open-API-and-Plugin-Development. Feel free to ask questions there

 

0

Please sign in to leave a comment.