Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I export specific live templates in Webstorm?

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.

like image 401
IngageStroliaC Avatar asked Aug 12 '13 15:08

IngageStroliaC


People also ask

How do I use live template in WebStorm?

To configure live templates, open the Editor | Live Templates page of the IDE settings Ctrl+Alt+S . On the Live Templates page, you can see all the available live templates, edit them and create new templates. To make finding and editing templates easier, they are split into groups.


1 Answers

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

like image 84
lena Avatar answered Sep 20 '22 06:09

lena