Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2010 equivalent to Eclipse "Outline" window drag-refactoring

I'm looking for an equivalent feature in Visual Studio to the drag-in-drop in Eclipse's Outline View. Specifically, after opening the class you were editing in Outline View, you saw all the methods in the class in the physical order they were in (not sorted alphabetically). You could to click on Method 1 and drag it above Method 2, moving all of the code from method 1 physically above Method 2's code. This was very useful for organization.

I looked at Class View in Studio, and while Class View does list all the methods in a class, it lists them according to an order you define (which obviously can't be dragged to rearrange). Is there any feature in Studio that allows you to view the physical layout of a class and rearrange it by dragging the methods?

Thanks, Alec

like image 790
pghprogrammer4 Avatar asked May 02 '11 17:05

pghprogrammer4


1 Answers

I don't believe there is a direct equivalent in Visual Studio 2010. The closest I've found is the File Structure window, which is provided by Resharper (a great commercial plug-in). This will show you members in their actual order and let you re-arrange things.

enter image description here

like image 146
Ben Hoffstein Avatar answered Sep 16 '22 17:09

Ben Hoffstein