How to use C# Formatter
- Paste the C# code.
- Choose the indent, four spaces is the .NET convention.
- Copy the result.
About C# Formatter
This formatter re-indents C# code by its braces, breaks lines after statements and keeps strings, verbatim strings and comments untouched. It is meant for snippets: code pasted from a chat, a decompiler or a log, which has lost its layout.
It is a layout tool, not a full style enforcer. For a whole solution, use dotnet format or your IDE with an editorconfig file, which understand naming and using directives as well.