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?
--
Chris Mullins 1 2288
Chris,
It might be a bit of a stretch, but I would say write your own. You
could use the classes in the System.CodeDom namespace to parse your code
into a CodeDom structure, and then output it in the way that you want.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Chris Mullins [MVP - C#]" <cm******@yahoo.comwrote in message
news:uU**************@TK2MSFTNGP05.phx.gbl...
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?
--
Chris Mullins This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Robert Freund |
last post by:
I've been looking for a good and free code beautifier that runs on
linux. About the only ones I found where Trita (www.trita.com), which
costs money and only runs on windows. The other one was...
|
by: Diego Andres Alvarez Marin |
last post by:
Hi all!
Is there a linux tool that uses as input my ugly C/C++ code and
outputs a pretty and nice formated source code?
Regards,
Diego
|
by: Sparhawk |
last post by:
Hi,
I want to integrate a code beautifier for C++ in the development
process of my company. There are many beautifiers around which would
meet our formatting requirements (SourceFormatX,...
|
by: Zhou Lei |
last post by:
GNU Indent is a powerful beautifier for C, and I'm using astyle to do that for
C++. But it's not perfect, anyone knows a free tool in Linux? Thanks.
|
by: guido.thelen |
last post by:
Hello,
maybe you are interested in this.
I wrote a java applet on www.sqlinform.com which is a SQL Code
beautifier. It is for all kind of SQL (SQL Server, DB2, ORACLE, Access,
Informix, MySQL,...
|
by: Surendra Singhi |
last post by:
Hello,
Are there any good open source C/C++ source code formatter?
Thanks for your help.
--
Surendra Singhi
http://www.public.asu.edu/~sksinghi/index.html
,----
| "O thou my friend! The...
|
by: Franz Steinhaeusler |
last post by:
Hello, I did not find any reasonable pyhton source code beautifier
program (preferable gui).
Some would ask why? Program it immediatly good.
(BTW: Would be a nice project, if I would have more...
|
by: Ole Mercano |
last post by:
When I insert a new Eventhandler or function VS 2005 does this automatically with an
indent which I don't like. Furthermore I would change the curly bracket handling.
Is there soemthing like a...
|
by: Chris Mullins [MVP - C#] |
last post by:
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...
|
by: sevak316 |
last post by:
Searched the forum and didn't find any topics on this.
Does anyone know where I can find a user friendly C beautifier. We are using Indent right now, but it doesnt have a friendly interface.
If...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |