Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>RoslynatorNew to Visual Studio Code? Get it now.

Roslynator

Josef Pihrt

|
13,350 installs
| (7) | Free
A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Roslynator for Visual Studio Code

A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn.

For further information please with Roslynator repo.

Configuration of Analyzers

Standard rulesets are used to configure analyzers on a project-wide basis.

If you want to configure analyzers on a user-wide basis you have to use Roslynator ruleset.

How to open ruleset:

  1. Press Ctrl + Shift + P
  2. Type "roslynator"
  3. Select "Roslynator: Open Configuration of Analyzers (roslynator.ruleset)"

Ruleset can be used to:

  1. Enable/disable analyzer(s) by DEFAULT.
  2. Change DEFAULT severity (action) of the analyzer(s).

Ruleset is applied once when the extension is loaded. Therefore, it may be neccessary to restart IDE for changes to take effect.

Configuration of Refactorings and Fixes

How to open config file:

  1. Press Ctrl + Shift + P
  2. Type "roslynator"
  3. Select "Roslynator: Open Configuration of Refactorings and Fixes (roslynator.config)"

Config file is applied once when the extension is loaded. Therefore, it may be neccessary to restart IDE for changes to take effect.

Full list of refactorings identifiers can be found here. Full list of fixes identifiers can be found here.

Location of Configuration Files

Configuration files are located at %LOCALAPPDATA%\JosefPihrt\Roslynator\VisualStudioCode. Location of %LOCALAPPDATA% depends on the operating system:

OS Path
Windows C:\Users\JohnDoe\AppData\Local
Linux /home/JohnDoe/.local/share
OSX /Users/JohnDoe/.local/share

Ruleset file is located at %LOCALAPPDATA%\JosefPihrt\Roslynator\VisualStudioCode\roslynator.ruleset. Config file is located at %LOCALAPPDATA%\JosefPihrt\Roslynator\VisualStudioCode\roslynator.config.

Requirements

This extension requires C# for Visual Studio Code 1.21.13 or higher.

Donation

Although Roslynator products are free of charge, any donation is welcome and supports further development.

Thanks

  • Thanks to Pekka Savolainen who pioneered the way for Roslyn analyzers on Visual Studio Code.
  • Thanks to Adrian Wilczynski who added several great PRs.
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft