views:

174

answers:

3

Hi All

Looking for a class cleanup/formatting plug-in for visual studio. Using ReSharper, but looking for something that will allow me to position members. i.e. private members at the top of the class, constructors next etc.

Anyone know of something that offers this?

Cheers

A: 

From the looks of it, the StyleCop plugin for ReSharper will do this if you run Code Cleanup. In particular, it has fixes for StyleCop Rule SA1201 specifying ordering.

Michael Greene
busy having a look...
Chev
A: 

download dxcore and classCleaner and you can format your code anyway you like. if you do decide to customise classcleaner you are likely to get hooked.....

Sky Sanders
A: 

ReSharper will allow you to control where members are placed in the file during code cleanup.

Take a look at:

ReSharper | Options | Languages | C# | Type Members Layout

Deselect Use Default Patterns to enable the textbox beneath. This allows you to specify, in great detail, what should go where.

The downside is that it takes a while to get your head around the notation used in the specification.

I believe this option is only available for C# code.

Drew Noakes