views:

95

answers:

3

If I'm editing deep within the body of a class, what would be the quickest (ie. fewest keyboard shortcuts) way to navigate to the top of the class declaration (the line that contains "class ClassName"

+4  A: 

Press Ctrl+F2, to get to the navigation bar, then hit enter to select the currently focused class.

Ben Laan
now how do you do it, with no hands?
Devtron
when peer programming, simply ask your peer to do it!
Ben Laan
I guess you could use the Speech Recognition API :-)
David Gardiner
A: 

If for some perverted reason you'd rather use the mouse, you can select the list of functions at the top right and then just select "Declarations"; that should take you to the top of the class definition. At least that works for me in VS2005...

Dan Tao
A: 

Create bookmarks on all your methods / class declarations. Then use (CTRL + K, CTRL + N) for the next bookmark, (CTRL + K, CTRL + P) for the previous bookmark. Then you can just "thumb" through them somewhat. Works great for me. Or use ctrl + home to take you to the very top of the document.

Jack