ReSharper 2023.3 Help

Import and export templates

You can export one ore more code templates to a separate file and distribute or share it with other developers. Accordingly, you can import templates created and shared by other developers. To be imported correctly, a template file must be created with ReSharper.

Export code templates

  1. From the main menu, choose ReSharper | Tools | Templates Explorer….

  2. In the Templates Explorer window that appears, click one of the tabs to choose the type of the template: Live Templates, Surround Templates, or File Templates.

  3. If you need to export templates from a particular settings layer, choose this layer in the Layer selector.

  4. Choose the desired scope and, optionally, a category to find the templates that you want to export.

  5. Select one or more templates to be exported. For multiple selection, hold the Ctrl key.

  6. Click Export ThemedIcon.Export.Screen.(Gray).png on the toolbar.

  7. In the Save As dialog that appears, specify filename and location, and then click Save.

Import code templates

  1. From the main menu, choose ReSharper | Tools | Templates Explorer….

  2. In the Templates Explorer window that appears, click one of the tabs to choose the type of the template: Live Templates, Surround Templates, or File Templates.

  3. If you need to import templates to a particular settings layer, choose this layer in the Layer selector.

  4. Click Import ThemedIcon.Import.Screen.(Gray).png on the toolbar.

  5. In the Open Templates File dialog that appears, specify a *.DotSettings file with templates. Note that template types saved in this file should correspond to the currently opened tab.

  6. Click Open.

Last modified: 18 March 2024