IntelliJ IDEA allows you to easily share the live templates with your team members, using the Copy and Paste commands on the context menu.
So doing, the Copy command creates a serialized XML representation of the selected live templates, and Paste inserts the templates based on this XML under the selected group.
This is how i's done.
- Open the Live Templates page of the Settings/Preferences dialog.
- Select the desired templates. Use ^ and ⇧ keys for multiple selection.
- Right-click the selection, and choose on the context menu.
An XML copy of the selected templates is created in the system clipboard.
- In the Live Templates page of the Settings/Preferences dialog, select the group where you want to insert the copied live templates.
- Right-click the selection, and choose on the context menu.
An XML copy of the selected templates is inserted from the system clipboard to the selected group of live templates.