views:

766

answers:

4

Is there any sort of plug-in or tool available for Visual Studio 2008 to alphabetize methods? Ideally I'd like a tool that will alphabetize a selection, or specified type (i.e. only methods, not member variables), either automatically or on-demand.

Thanks!

+1  A: 

Assuming that you mean alphabetize them in the source code file; No, there is not. And I don't really think that would be a good thing, as most procedures are organized via different means.

However, I believe in Visual Studio, the drop-down on the right for the most part alphabetizes them. Also, in the Object Browser of Visual Studio, I believe they are mostly alphabetized.

hmcclungiii
"And I don't really think that would be a good thing, as most procedures are organized via different means."Company style (i.e. my boss) likes methods to be alphabetized, so I was looking for a tool that we could all use to make him happy. :)
80bower
+4  A: 

Resharper has a Type Members Layout, which can order members by type, accessibility and alphabetically as well.

You can also take a look into Ora, which presents a pane in visual studio that is ordered (even though your source may not be).

DavidN
Thanks! I'll look into them. There's the Class View pane that alphabetizes, but he wants the actual source code arranged.
80bower
Resharper Type Members Layout reorders the source file, I use it all the time.
DavidN
+1  A: 

You can create such a function yourself using Devexpress' free DXCore product (the same extensibility framework used to create CodeRush).

Jim Anderson
A: 

For C# you can use Regionerate to organize your code. You can create a template that simply organizes your code but doesn't use regions.

Agent_9191