jsonecho

Formateador de C#

Formatea código C# para que sea legible.

Cargando la herramienta...

Cómo usar Formateador de C#

  1. Pega el código C#.
  2. Copia el resultado.

Sobre Formateador de C#

Aplica indentación y formato consistente a código C#.

Preguntas frecuentes

Does it follow the Microsoft coding conventions?

It uses the usual layout: four-space indent, opening brace on the same line. For strict control use an .editorconfig with dotnet format.

Are strings and comments safe?

Yes. Regular, verbatim and interpolated strings and both comment types are skipped by the formatter.

Will it fix syntax errors?

No. It works on the text layout and does not compile the code.

What about long lines?

Lines are not wrapped. Statements stay on one line even if they are long.

Más en Formateadores de código

Todas las herramientas →