I want to ensure that existing brace styles in my project are preserved (some braces on the same line and some on a new line).
Here’s a snippet of my .editconfig file
[*.cs]
indent_style = space
tab_width = 4
After running dotnet format
all braces get moved to a new line. How to enforce brace styles to remain as-is?
New contributor
woohoo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.