Convert Resharper's code template to Visual Studio Code's snippet (Not Visual Studio's Code Snippet!!)
Tested with Resharper 2019.2.3 and Visual Studio Code 1.40.0
Requires .NET Framework 4.5 or Mono to run.
- Click Resharper->Tools->Templates Explorer
- Select C# scope
- Ctrl+A to select all code templates
- Click "Export..." in the toolbar
- Save the DotSettings file
- Drag that file onto T2S.exe, or use command line:
.\T2S.exe YourFileName.DotSettings
- Copy the generated
csharp.json
file to%APPDATA%\Code\User\snippets\csharp.json
- Done!
It should work with other language's template as well, just rename the generated json file accordingly.