7

In VS 2010, is there a way to see all the Methods in a docked window for the currently viewed class. Clicking the method would let me navigate to it.

This question is for design mode, while editing a class in the IDE.

I own Resharper, but don't see a way to see all the methods in a nice list as a feature.

Ian Vink
  • 66,960
  • 104
  • 341
  • 555

3 Answers3

15

If you have Resharper at your disposal as you indicate, you can use the File Structure window. It looks like this:

enter image description here

To open it, click Resharper, Windows, "File Structure". The window is dockable, and updates as your current file changes.

enter image description here

vcsjones
  • 138,677
  • 31
  • 291
  • 286
  • 1
    It's probably worth noting that this window is incredibly useful. You can use it for navigation, you can also drag items around in the window to reorder members in your code, and group them into regions if that's your style. The "Automatically scroll to source" option makes it easy to just click on things and automatically go to it in the source editor. – vcsjones Dec 16 '12 at 23:45
8

View -> Class View or Ctrl+Shift+C You see the different classes on the top panel and the methods on the bottom panel.

Also, you have the method list on the top part of your tab: enter image description here

Blachshma
  • 17,097
  • 4
  • 58
  • 72
  • 1
    This is probably as close as it will get. You can assign a keyboard shortcut to `View.SynchronizeClassView` to have the class view automatically jump to the right place. – vcsjones Dec 16 '12 at 19:43
  • But how can I get it to show the current class. I have a huge solution with hundreds of classes in dozens of projects. I need to quickly see 'where I am' in the current class. – Ian Vink Dec 16 '12 at 19:43
  • @BahaiResearch.com I think the keyboard shortcut is as close as it will get. You could develop a Visual Studio Add On that automatically calls that when the current file selection changes, though. – vcsjones Dec 16 '12 at 19:44
  • I tried a couple of key combinations from Global and this shortcut would not work for me. – Chucky Aug 05 '15 at 09:48
1

You have VS 2012. This version has enancements in Solution Explorer.
If you expand a class file node you will see all classes.
And if you expand a class node you will see all its members.

See http://blog.wpfwonderland.com/2012/08/04/visual-studio-2012-tidbits-01-class-members-in-solution-explorer for an explanation.

thersch
  • 1,316
  • 12
  • 19