Visual Studio 2005 question

Sep 29, 2004
18,656
68
91
In VS 2005, there is a class view. The editor area is also tabbed.

Now, when I have multiple tabs open, I want the class view to link to whatever tab I select so I can navigate quickly to whatever method I want to look at.

This is default functionality in Eclipse. Somehow MS managed to make life difficult. Go figure. Anyone know how I can link the class view to the current editor? Thanks!

PLEASE PM ME if you answer the question! Thanks!
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
The class view in VS is typically used to browse the other way, i.e. find a class and then get the file it is in. Since files may contain more than one class it would be hard to select which one to highlight in the class view, other than by tracking cursor location. Visual Studio provides the same capability, but just organizes it a little differently than Eclipse. When you bring up a file and place your cursor anywhere in the definition of a class, the drop-down list at the upper right of the tab window is populated with all the class members. This control does track cursor location, so if you have more than one class in a file you will see the members based on where your cursor is.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
It's not a separate window. When you open up a code file in a tab in Visual Studio, look at the top right of that code view and you will see a drop-down list. If you place your cursor inside a class in the code view, that drop-down will be populated with the class members, and you can use it to jump between them in the file.