How can I export specific live templates in Webstorm?

4k views Asked by At

I have some live templates in Webstorm that I would like to share with my team mates.

I can see that there is a way to export live templates from WebStorm, however, this just seems to do a blanket export of all live templates to a .jar file.

Is there a way to target specific templates, or a specific group of live templates to export, so I don't end up giving my team mates a whole lot of templates that are irrelevant to them?

If not, it would be acceptable if I could export my live templates to some sort of text file instead so that I could remove any irrelevant templates manually.

Also, I have seen some plugins that add live templates to WebStorm. If it is not too difficult to create such a plugin, it would be fine if someone can point me in the right direction on how to do that.

1

There are 1 answers

6
lena On BEST ANSWER

The easiest way to do this is to copy the desired .xml from ~/.WebStorm*/config/templates to the target WebStorm config directory