Format code using official dotnet-format tool
See original GitHub issueToday I was experimenting with this SDK and regenerating code using xdrgen and I discovered that the tools I have do not format the .cs files in this repo in the same way that they are currently formatted. I tried a few tools, VSCode, dotnet-format, Visual Studio for Mac, and they didn’t format them identical.
This is not particularly problematic for code that is purely edited by hand, but since there are many files generated by XDR it is difficult to regenerate those files then format them according to the norms that I see the maintainers are using.
Would it be possible to standardize on using the official dotnet-format
tool to format code? It supports configuration so it can be configured to format code in a way that is pleasing to you. It’s default formater seems pretty close, but not identical, to what is already in this repo.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (6 by maintainers)
Top GitHub Comments
Closing since we now check for code formatting as part of the CI process.
using System; is usually kept.