Have 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.
sweet, thanks for the tip :)
The C# crowd get all the cool shortcuts :( wish I could convince my employer to dump VB
Nice trick! Thanks for sharing… :-)
Good one! Thanks! :)
This will surely halp in refactoring. Thanks!
Thanks for the handy tip!
Good trick, it also works with XML files though ;).
best wishes
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.
Thanks for sharing. It saved scrolling :)
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 !
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…
Pressing Crtl+] will switch between opening & closing braces.
Thanks! This is very useful!
Very useful. Thanks. :)
That’s a great tip. Thank you.
yes, this one helps.. I have been thinking about this shortcut for so long.. finally made effort to google it out :)