Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to jump to Next statement from For or For Each (like braces but in vb) in Visual Studio 2008

Does anyone know what the keyboard shortcut for jumping from the start of a keyword, such as for, forEach, if, while etc... is in Visual Studio when your using "vb.net"? I found the following Question, which I thought would do what I was looking for, but it doesn't.

Following a comment from the linked question above, I checked the path:

  • Tools/Options/Environment/Keyboard

...for the Edit.GotoBrace command. From what I read, the command should be mapped to the keybinding: CTRL + å in Swedish.

Vb.net doesn't use braces per se, but in the following example:

  For Each Foo in Bar
    Do lots of stuff
  Next

I would have thought that the same command should jump me from the For Each to the "Next" but it doesn't do anything. Is there another command (or should that command work but something is broken locally?)

like image 243
Adam Avatar asked Feb 17 '10 10:02

Adam


1 Answers

For the sake of other SO users, and so the answer isn't buried as a comment inside of an answer:

"...there are keyboard shortcuts (Ctrl+Shift+Up and Ctrl+Shift+Down) that move the editor caret between highlighted references/keywords."

from:

https://connect.microsoft.com/VisualStudio/feedback/details/534430/block-navigation-for-vb-net-similar-to-paranthesis-navigation

like image 118
micahtan Avatar answered Nov 01 '22 13:11

micahtan