In Visual Studio 2008 is there a shortcut to move from one block of code to an another block of code directly? Like from one function to say: the beginning of next function.
Currently all I can do is press-press arrow keys.
Edit: I am aware of the Ctrl+] to jump between matching braces but that does not relieve me from multiple up/down presses initially. Also the “Edit.NextMethod” does not work as it is always disabled unless you are editing VB Code (It does not appear to work their either).
Macros is the Solution:
Shipped with VS2008 are sample macros that contain:
Sample.VSEditor.BeginningOfFunction – to move to the beginning of a function.
This can be modified to get it to move to the End of the function instead by changing: CodeElement.GetBeginningPoint to GetEndPoint. Next an another user-defined macro: NextMethod() first navigates to the end of current function then finds the next function and finally moves to the beginning of this next function.
Get the Macro: http://social.msdn.microsoft.com/Forums/en/csharpide/thread/8c5a2fd2-df25-4196-b211-5da3086f4f3d