Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool to automatically reformat whole C# source tree in VS2008?

I have inherited a large source tree, C#, Visual Studio 2008.

It has many quality issues, one of them is that the code is generally badly formatted.

I am looking for a tool, preferably a plugin for Visual Studio, that will go over the whole solution and apply the same basic formatting that Visual Studio itself applies when, for example, you close a curly brace around a block of code.

Any suggestions?

like image 609
tomfanning Avatar asked Dec 09 '22 21:12

tomfanning


1 Answers

In vs2005, you can do Edit->Advanced->Format Document for a single file, which will (I believe) do what you're asking. I assume vs2008 has a similar function somewhere.

like image 169
Andy Mikula Avatar answered Dec 12 '22 11:12

Andy Mikula