NArrange is a stand-alone, configurable .NET code beautification tool that automatically organizes code members and elements within .NET classes. It allows developers to easily sort class contents according to their style and layout conventions. NArrange works by parsing source code files into a document object model, arranging the elements, then rewriting the arranged source code.

NArrange helps reduce the amount of time developers spend arranging members within source code files, and when used as part of check-in procedures, can also help reduce source code repository conflicts. With NArrange, developers don't need to worry about where they place a new member definition in a class; they can just type away, and run NArrange prior to compilation. After formatting, the new member will be automatically moved to the appropriate location in the source file. NArrange is not only a great time saver, but it also helps enforce coding style standards across a team when a common configuration file is used.

When projects are converted from VS 2003 to VS 2005, component classes are not automatically split out to have the new designer partial classes (e.g. MyForm.cs and MyForm.Designer.cs).

So, I thought I'd throw together a Visual Studio macro that takes care of this for me...  Note: The macro expects the code view for the class to split to be the active VS document.


The Test Container for User Control Libraries in Visual Studio 2005 is awesome!  However, I noticed that when Visual Studio 2003 class library projects are converted up to 2005, they do not automatically get this debugging functionality when they contain user controls.

After digging around in the VS program files directory I came across the Windows Control Library project template.  It can be found at Microsoft Visual Studio 8\Common7\IDE\ProjectTemplates\CSharp\Windows\1033\


James Nies

.NET Ramblings and Visual Studio Adventures