-
Refactorings and code fixes are supported by VS Code at the moment.
-
Analyzers should be supported in future version of VS Code.
-
Download latest extension from Visual Studio Marketplace
-
Change extension from vsix to zip.
-
Extract zip file.
-
Copy selected libraries to a directory of your choice (for example C://lib/roslynator)
- Roslynator.Core.dll (required)
- Roslynator.Workspaces.Core.dll (required)
- Roslynator.Common.dll (required)
- Roslynator.Workspaces.Common.dll (required)
- Roslynator.CSharp.dll (required)
- Roslynator.CSharp.Workspaces.dll (required)
- Roslynator.CSharp.CodeFixes.dll (contains code fixes for compiler diagnostics)
- Roslynator.CSharp.Refactorings.dll (contains refactorings)
-
It may be necessary to unblock dll files.
-
Create file at %USERPROFILE%/.omnisharp/omnisharp.json with following content:
{ "RoslynExtensionsOptions": { "LocationPaths": [ "C:/lib/roslynator" ] } }
See OmniSharp Wiki for detail information about configuration options.
-
Restart VS Code.