VS08: go to the beginning of a "block"

When working with code in VisualStudio 08 Pro, I often find myself before the closing parenthesis (}) wondering where exactly this thing opened. If it's just one screen, I can immediately notice the shadowed character, but usually I have to scroll and look closely.

Is there a keyboard shortcut that jumps to the beginning of the matching curly brace?

THH

Ok ... cntl +] works in pure C # code ... how about in an aspx MVC page?

And again with editing to show better context:

...<%
else if (row.RegistrationType == RegistrationType.Live)
{ 
%>
<a id="Add" onclick="AddStuff();" >Imagine lots and lots of text here that obscures the above brace from it match below.</a>
<%
}//cursor here hightlights the brace following the else
//but cntl+] only jumps up one line.
%>

      

+2


source to share


3 answers


With the cursor on the closing parenthesis:



Management +]

+1


source


I think this Control-]

is the one you are looking for.



+1


source


In my VS2008 Ctrl+ version, ^you can jump between opening and closing brackets.

Don't know if the shortcut depends on the settings that were selected when starting VS for the first time or on the keyboard layout.

0


source







All Articles