using 12.1.5 I was able to accomplish this by looking at the source of the groovy plugin.
Go ahead and create your template using the settings dialog. It will save the resulting XML file somewhere under %home%/.Ideawhatever/config/templates in group_name.xml
Copy this file to project/resources/liveTemplates
Create an implementation of DefaultLiveTemplatesProvider and do the following:
@Override public String[] getDefaultLiveTemplateFiles() { return new String[] {"liveTemplates/group_name"}; }
add the following extensions to your plugin.xml
defaultLiveTemplatesProvider implementation="com.tridium.intellij.NiagaraTemplatesProvider"
source share