Can't export live templates
I've followed this walkthrough to manually export my live templates. But when I look at what was exported I only have one javascript xml file. I have many C# live templates. How can I get those included in the export?
Please sign in to leave a comment.
Hello Gswarts,
Thank you for contacting Rider support. Apologies for the confusion made. We will fix documentation.
Your file templates are stored in GlobalSettingsStorage.DotSettings settings file (by default).
There are two settings systems in Rider: IntelliJ Platform IDE settings and ReSharper DotSettings (aka Layers-based Setting). .Net/C++ Live Templates are stored in ReSharper settings and are not shared through the File | Manage IDE Settings. When you create a file template and press Save, it is saved in the {config}/resharper-host/GlobalSettingsStorage.DotSettings file.
Way to find this file: You can find it in the following way: Help | Diagnostic Tools | Special Files and Folders -> double-click the Config directory node -> enter the resharper-host folder.
The Settings Sync feature is supposed to synchronize Live Templates between your machines, as soon they are stored on the global layer (in the file I mentioned).
Should you wish to sync the settings between your machines using the settings sync plugin, ensure:
Ensure you save your live templates on the “This Computer” layer:
Manual export/import ReSharper settings. This is another way to share live templates:
Share Live Templates with colleagues
You can store Live Templates on the team-shared layer. For this, instead of saving the File Templates via the Save button, open the dropdown bundled to the Save button and select "team-shared" option:
It will generate {Solution}.sln.DotSettings file in your solution folder, so that this file template will be available for any developer who opens this solution (and uses Rider or ReSharper).
Hope that helps.