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).
If you place your cursor to the left of the opening {
, then Ctrl
+}
will move you to the end of this method/block/operator
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
In VB.NET (VS 2010) I wanted to reinstate the old feature of the VB6 editor to navigate to the next and previous methods in a class by hitting the Ctrl-DownArrow and Ctrl-UpArrow.
This was straightforward taking the following steps:
You can do the same with Edit.NextMethod
and Ctrl+Down Arrow.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With