coderushforroslyn-402554-coding-assistance-code-templates-export-and-import-templates.md
You can export your custom code templates to an xml file and share this file with other developers. CodeRush also allows you to import code templates created by other developers.
Important
Visual Studio IntelliSense has priority over CodeRush templates. For information on how to prioritize a CodeRush template over Visual Studio IntelliSense , refer to the following topic section: Expand a Template Instead of Visual Studio IntelliSense.
Open the Templates options page.
Choose the template language from the “Language” drop-down list.
Position templates you want to export in a folder.
Right-click the folder you want to export and choose the Export Folder… menu item.
In the “Save As” dialog, type the name of your export file, specify the file location, and click Save.
Open the Templates options page as described in the previous section.
Choose the template language from the “Language” drop-down list.
Right-click any folder in the templates tree and choose the Import Templates… menu item.
In the Open dialog, choose the xml file that contains templates you want to import, and click Open.
Choose the appropriate action in the Category Exists menu and click OK.
Click Apply and OK in the Templates options page to save the templates and close the page.