Newer versions of Visual Studio Support EditorConfig within the IDE which is useful, however it would be best if I could run it from the command line (and therefore in automation).
Is there any stand alone tool that supports all of the EditorConfig Settings as the Visual Studio IDE does? Microsoft Docs: .NET coding convention settings for EditorConfig
Here's what I have found so far:
Baring a stand alone tool is there any way to force Visual Studio into running the code cleanup "headless"? That might be my only solution.
I've been hunting for the same thing, just found a very new tool for this, dotnet-format
, put out from the Roslyn team:
https://github.com/dotnet/roslyn/tree/master/src/Tools/dotnet-format
From their README:
dotnet-format
is a code formatter fordotnet
that applies style preferences to a project or solution. Preferences will be read from an.editorconfig
file, if present, otherwise a default set of preferences will be used.
Looks like the indented usage is something like:
$ dotnet format -w MyApplication.sln
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With