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"
views:
95answers:
3
+4
A:
Press Ctrl+F2, to get to the navigation bar, then hit enter to select the currently focused class.
Ben Laan
2009-07-13 01:39:59
now how do you do it, with no hands?
Devtron
2009-07-13 18:08:27
when peer programming, simply ask your peer to do it!
Ben Laan
2009-07-13 23:36:39
I guess you could use the Speech Recognition API :-)
David Gardiner
2009-07-13 23:41:13
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
2009-07-13 01:50:52
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
2009-07-13 02:31:54