Skip to main content

Editor Integration

Running CSharpier on save is recommended. It will speed up your development time. All of the official extensions support it.

Note It is important to use CSharpier as a local dotnet tool to ensure files are formatted consistently across team members and environments.

Visual Studio​

Use the official 2022 extension
Use the official 2019 extension

They can both be installed from within the VisualStudio Manage Extensions dialog.

Visual Studio Code​

Use the official extension

It can be installed via the Extensions sidebar. It is called "CSharpier - Code Formatter"

Rider​

Use the official plugin

It can be installed via the Plugins dialog.

Neovim​

Use conform.nvim or Use neoformat

Emacs​

Use format-all

Zed​

Add the following to your settings.json (Zed -> Open Settings File)

  "languages": {
"CSharp": {
"format_on_save": "on",
"formatter": {
"external": {
"command": "dotnet",
"arguments": ["csharpier", "format"]
}
}
}
}