// plugins

Roslyn Plugin

Adapter plugin that formats C# and Visual Basic code via Roslyn.

This is a process plugin. Using this will cause the CLI to download, run, and communicate with a separate process that is not sandboxed (unlike Wasm plugins).

Install and Setup

In your project's directory with a dprint.json file, run:

dprint add roslyn
# or install from npm
dprint add npm:@dprint/roslyn

This will update your config file to have an entry for the plugin. Then optionally specify a "roslyn" property to add configuration:

{
  "roslyn": {
    // roslyn's config goes here
  }
  // etc...
}

Configuration

C# configuration uses the CSharpFormattingOptions (use "csharp.<property name goes here>": <value goes here> in the configuration file).

It does not seem like Roslyn supports any VB specific configuration.