end_of_line

Line ending to write. auto matches the platform's own (Environment.NewLine), the same default Roslyn uses.

Value Notes
lf
crlf
auto

Default: auto

No known case where Curb's output is not a fixed point of dotnet format — see conformance.

lf and crlf write every line ending in the file that way. auto, which is also what an unset key means, writes the platform's own (Environment.NewLine). A code block can't show the difference. With the key unset, dotnet format writes the platform's ending wherever it rewrites a line break, around a file header of two or more lines for one, and keeps each other line's own, so on macOS or Linux it leaves a CRLF file with some lines in LF. It leaves Curb's output, all in the platform's ending, alone.