Share file templates
When you create or modify a file template, you do it in one of the following scopes (determined by the Scheme parameter under ):
Default: file templates created at the IDE level. These templates are available in all projects that you open with the current IDE instance. Use them as your personal templates that you prefer regardless of the specific project. JetBrains Rider stores global templates in the IDE configuration directory under fileTemplates.
Project: file templates specific for the current project. These templates are available to everyone who works on this project. JetBrains Rider stores them in the project folder under .idea/fileTemplates.
If you have file templates available at the IDE level (Default scheme), you can share them using Settings Sync or by manually exporting them.
Share file templates using Settings Sync
If you want to synchronize file templates across your IDEs (rather than sharing them with your teammates), you can use Settings Sync. Settings Sync uses the JetBrains server to synchronize IDE settings across the IDEs where you sign in using your JetBrains account.
Press Ctrl+Alt+S to open Settings, go to .
If Settings Sync is not yet enabled, click Enable Settings Sync.
To share file templates, make sure the Code settings checkbox is selected under Configure what to sync. Select this checkbox on other IDEs where you want your code settings (including live templates) to be shared.
Export file templates manually
Choose
from the menu.In the Export Settings dialog, make sure that the File templates checkbox is selected and specify the path and name of the archive, where the exported settings will be saved.
Click OK to generate the file based on the exported settings. You can share this file with your team members, or import it on another JetBrains Rider installation.
Import file templates
Select
from the menu.Specify the path to the archive with the exported file templates.
In the Import Settings dialog, select the File templates checkbox and click OK.
After restarting JetBrains Rider, you will see the imported file templates on the Editor | File templates | Other Languages page of settings Ctrl+Alt+S.