CSharpier - Code formatter installs statistics
By csharpier · VS Code Marketplace · Formatters
Code formatter using csharpier
CSharpier - Code formatter has 369,480 recorded installs on VS Code Marketplace, an increase of 1.3% over the past 30 days, ranking #1020 of 2,515 tracked listings.
Rating: 4.07 / 5 from 30 ratings
About CSharpier - Code formatter
CSharpier Formatter for Visual Studio Code
This extension makes use of the dotnet tool CSharpier to format your code. This extension is versioned independently from CSharpier itself.
CSharpier is an opinionated code formatter for c# and xml.
It provides very few options and a deterministic way to enforce formatting of your code.
The printing process was ported from prettier but has evolved over time.
Installation
Install through VS Code extensions. Search for CSharpier
Can also be installed in VS Code: Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
ext install csharpier.csharpier-vscode
CSharpier Version
The extension determines which version of csharpier is needed to format a given file by looking for a dotnet manifest file. If one is not found it looks for a globally installed version of CSharpier.
XML Formatting
Formatting XML is only available using CSharpier >= 1.0.0
Dotnet Commands
The extension makes use of dotnet commands and uses the following logic to locate dotnet.
- If
dotnet.dotnetPathis set try using that to finddotnet - If
omnisharp.dotNetCliPathsis set try using that to finddotnet - Try running
dotnet --infoto see ifdotnetis on the PATH - For non-windows - Try running
sh -c "dotnet --info"to see ifdotnetis on the PATH
Default Formatter
To ensure that CSharpier is used to format files, be sure to set it as the default formatter.
You can modify your settings.json file.
"[csharp]": {
"editor.defaultFormatter": "csharpier.csharpier-vscode"
},
"[xml]": {
"editor.defaultFormatter": "csharpier.csharpier-vscode"
},
Troubleshooting
See this page
Usage
Keyboard Shortcuts
Visual Studio Code provides default keyboard shortcuts for code formatting. You can learn about these for each platform in the VS Code documentation.
If you don't like the defaults, you can rebind editor.action.formatDocument and editor.action.formatSelection in the keyboard shortcuts menu of vscode.
Format On Save
Respects editor.formatOnSave setting.
Found in the settings at Text Editor | Formatting | Format on Save
You can turn on format-on-save on a per-language basis by scoping the setting:
// Set the default
"editor.formatOnSave": false,
// Enable per-language
"[csharp]": {
"editor.formatOnSave": true
},
"[xml]": {
"editor.formatOnSave": true
}
Devcontainers
CSharpier supports DevContainers if it is installed as a local dotnet tool.
# if no .config/dotnet-tools.json file exists
dotnet new tool-manifest
# add csharpier to manifest
dotnet tool install csharpier
# rebuild container image
Limitations
Format Selection is not supported.
Only "editor.formatOnSaveMode" : "file" is supported. If using other modes, you can set file by scoping the setting:
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "modifications"
"[csharp]": {
"editor.formatOnSaveMode": "file"
}
Description from the VS Code Marketplace listing.
- c#
- csharp
- csharpier
- formatter
- msbuild
- prettier
- xml
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Ratings over time
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Installs on a linear scale. Placement is projected from installs, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (50)Similar VS Code Marketplace Formatters plugins
All 20 CSharpier - Code formatter alternativesData source
Install counts, average rating, and rating counts come from the public Visual Studio Marketplace gallery API. Installs are cumulative and exclude updates.
Listing: https://marketplace.visualstudio.com/items?itemName=csharpier.csharpier-vscode. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.