Go to Matching Brace in Visual Studio?
Is there a way in Visual Studio 2008 to go from a closing brace to its opening brace? I've found a fair amount of stuff about highlighting the brace, but nothing about moving the cursor to it.
(VB.NET version of this Question: Keyboard shortcut for Jumping between "If/End If")
I found this for you: Jump between braces in Visual Studio
Put your cursor before or after the brace (your choice) and then press CTRL + ]. It works with either curly or round braces. From now on you don't need to play Where's Waldo? to find that brace.
Use CTRL + ] to switch between them. Place the cursor at one of the braces when using it.
I use Visual Studio 2008, and you can customize what you want this shortcut to be.
Click menu Tools -> Options -> Environment -> Keyboard. Then look for Edit.GotoBrace .
This will tell you what key combination is currently assigned for this. I think you can change this if you want, but it's useful if the Ctrl + ] doesn't work.
链接地址: http://www.djcxy.com/p/17078.html