Tips And Tricks, Visual Studio

Jump between braces in Visual Studio.

search_BraceHave you ever scroll, scroll, scroll to find the beginning of if else  statement?  In this post I’m not going to tell you that long methods and classes are evil.  Instead, I want to share with you how to move fast between open and close braces.

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.

I’ve been using this trick since Visual C++ 4.0. 

kick it on


26 thoughts on “Jump between braces in Visual Studio.

  1. Excellent! Excellent! Have wanted this feature in CodeRush forever. Super handy. Thanks for the post. Wonder why it’s not listed in the JetBrain’s “ReSharper 4.5 Default Keymap” pdf.

  2. AGGGH ! 8-D I have a Spanish keyboard and this does not work so, anyone knows how to do this with a Spanish keyboarddd ? Thanks in advance !

  3. Is there an analogous way to move back to the opening brace? crtl + ] moves to the closing brace, but ctrl+[ does not move to the opening brace…

  4. yes, this one helps.. I have been thinking about this shortcut for so long.. finally made effort to google it out :)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s