Vadim's Weblog

Never stop learning.

Jump between braces in Visual Studio.

Posted by Vadim on July 9, 2008

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 DotNetKicks.com

About these ads

20 Responses to “Jump between braces in Visual Studio.”

  1. smartyp said

    sweet, thanks for the tip :)

  2. scumdogg said

    The C# crowd get all the cool shortcuts :( wish I could convince my employer to dump VB

  3. […] Jump between braces in Visual Studio. […]

  4. Sheron said

    Nice trick! Thanks for sharing… :-)

  5. karlagius said

    Good one! Thanks! :)

  6. Janko said

    This will surely halp in refactoring. Thanks!

  7. […] Stumbled across a VS.NET power tweak […]

  8. Thanks for the handy tip!

  9. […] I originally found this nifty little feature from another blog […]

  10. […] что это сэкономит вам массу времени на прокрутке кода.Источник-> Читать […]

  11. pawel g. said

    Good trick, it also works with XML files though ;).

    best wishes

  12. […] originally found this nifty little feature from another blog :linkedIn, Visual […]

  13. ktmt said

    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.

  14. Thanks for sharing. It saved scrolling :)

  15. Roger said

    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 !

  16. Anonymous said

    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…

  17. Rohit said

    Thanks! This is very useful!

  18. fmohr said

    Very useful. Thanks. :)

  19. […] I found this for you: Jump between braces in Visual Studio […]

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

%d bloggers like this: