C
Chris Mullins [MVP - C#]
We've got a lot of code we're about to migrate from .Net 1.1 to .Net 3.5.
This code has, shall we say, a somewhat organic coding style. I would like
to run all the code thorugh a C# Beautifier that complies with the Microsoft
standards for formatting and such. I'm not looking to change variable names,
but I want a consistant style throughout in terms of indenting, spacing, and
the like.
So far, I've played with several beautifiers, none of which did a very good
job on our codebase:
- GreatCode didn't really do well at all with our C# codebase
- UnCrustify did an alright job, but seems to be very bug prone. It misses
many common cases and seems to hit others. I spent an hour getting the
options just right, only to have the options not work 1/2 the time.
- SourceFormatX did an ok job, but again, missed alot of common cases that
the options were defined to hit.
- Resharper's built-in Formatter does a great job, but seems to crash alot
with an OutOfMemoryException on our bigger files. (Did I mention the source
code is, um, organic. As in, "Grown and Grown, often in unpredictable
directions").
- Visual Studio does a lousy job.
Any suggestions for a really good C# source code formatter?
This code has, shall we say, a somewhat organic coding style. I would like
to run all the code thorugh a C# Beautifier that complies with the Microsoft
standards for formatting and such. I'm not looking to change variable names,
but I want a consistant style throughout in terms of indenting, spacing, and
the like.
So far, I've played with several beautifiers, none of which did a very good
job on our codebase:
- GreatCode didn't really do well at all with our C# codebase
- UnCrustify did an alright job, but seems to be very bug prone. It misses
many common cases and seems to hit others. I spent an hour getting the
options just right, only to have the options not work 1/2 the time.
- SourceFormatX did an ok job, but again, missed alot of common cases that
the options were defined to hit.
- Resharper's built-in Formatter does a great job, but seems to crash alot
with an OutOfMemoryException on our bigger files. (Did I mention the source
code is, um, organic. As in, "Grown and Grown, often in unpredictable
directions").
- Visual Studio does a lousy job.
Any suggestions for a really good C# source code formatter?