在VisualStudio 08 Pro中使用代碼時,我經常發現自己正面臨一個右大括號(}),確切地想知道事物的打開位置。如果只有一個屏幕的價值,我可以馬上看到陰影角色,但通常不得不滾動並且看起來很近。VS08:跳轉到'block'的開頭
是否有跳轉到匹配大括號開頭的鍵盤快捷鍵?
THX
好吧... CNTL +]工作在純C#代碼...怎麼樣在MVC aspx頁面?
並再次編輯,以顯示更好的情境:
...<%
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's match below.</a>
<%
}//cursor here hightlights the brace following the else
//but cntl+] only jumps up one line.
%>
我會將此作爲一種符號,該方法過於複雜,應重構。 – devSpeed 2009-09-24 21:48:04