Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2008 Keyboard Shortcut to display Members?

What is the best way to display the Members in the current file in VS2008?

SCENARIO: You open a file with Ctrl + D and then type “>of ” and SomeFilename, then press Enter and you end up in the newly opened file. Now if you don’t remember a method’s name or a member’s name, you might try to incrementally search (Ctrl+I) and/or various search options, but what I want to know is how can I see/open/scroll-through/etc the Member combo box (or similar alternative).

Any ideas?

EDIT: I know about the Navigation Bar (it is “on” by default for c#), and that’s exactly what I want to do, go there without using the mouse. There’s a keyboard shortcut: Window.MovetoNavigationBar which is so far the only option i’ve found. But you need to press Tab to move from types to Members.

like image 475
Martin Marconcini Avatar asked Nov 21 '09 17:11

Martin Marconcini


3 Answers

Andrew is right.

Alternatively, there is Object Browser. Ctrl + Alt + J

EDIT: The shortcut is Ctrl + F2.
And, you will have to hold it together for little more than a second to reach the dropdown.

You can press Alt + to drop the combobox.
While you are in the "Types" dropdown, you can press Tab to move to the "Members" dropdown.

like image 78
shahkalpesh Avatar answered Nov 15 '22 09:11

shahkalpesh


Use the navigation bar at the top of the IDE - the one on the right hand side lists all members of the current type.

If you don't see the navigation bar then you can enable it this way:

Tools > Options > Text Editor > All Languages > Navigation Bar

like image 20
Andrew Hare Avatar answered Nov 15 '22 09:11

Andrew Hare


Buy ReSharper and use its File Structure window. Ctrl + F11.

like image 27
TrueWill Avatar answered Nov 15 '22 08:11

TrueWill