GoLand 2018.3 Help

Sharing Live Templates

GoLand stores definitions of custom live template groups and templates added to predefined template groups in automatically generated XML configuration files.

  • For a custom group, the file contains definitions of all the templates the group includes.

  • For a modified predefined group, the file contains definitions of the added (or modified) live templates only.

Live template group configuration files are stored in the templates directory of the IDE configuration directory. By copying the relevant files in the templates directory, you can share live templates among team members and multiple GoLand installations. Moreover, you can share live templates across all IDEs based on the IntelliJ platform.

GoLand provides the export and import functionality for sharing live templates, which may be more convenient than copying configuration files manually.

To export live template configuration

  1. Choose File | Export Settings from the menu.

  2. In the Export Settings dialog, make sure that the Live templates check box is selected and specify the path and name of the archive, where the exported settings will be saved.

  3. Click OK to generate the file based on live template configuration files. You can share this file with your team members, or import it on another GoLand installation.

To import live template configuration

  1. Choose File | Import Settings from the menu.

  2. Specify the path to the archive with the exported live template configuration.

  3. In the Import Settings dialog box, select the Live templates check box and click OK.

  4. After restarting GoLand, you will see the imported live templates on the Editor | Live Templates page of GoLand settings (Ctrl+Alt+S) .

Last modified: 11 December 2018