RubyMine 2016.1 Help

Sharing Live Templates

RubyMine 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.

To create an XML copy of live templates

  1. Open the Live Templates page of the Settings/Preferences dialog.
  2. Select the desired templates. Use Ctrl and Shift keys for multiple selection.
  3. Right-click the selection, and choose Copy on the context menu.

    An XML copy of the selected templates is created in the system clipboard.

To paste the live templates

  1. In the Live Templates page of the Settings/Preferences dialog, select the group where you want to insert the copied live templates.
  2. Right-click the selection, and choose Paste on the context menu.

    An XML copy of the selected templates is inserted from the system clipboard to the selected group of live templates.

See Also

Reference:

Last modified: 21 July 2016