Visual Studio Tips: Move or select code between matching braces

This short and quick post is inspired by the Blog Post (Read)  written by Pinal Dave (SQL Authority), describing shortcut to select code between two parenthesis in SQL Server. This can be very useful when we are working with complex queries. Fortunately, it is the same shortcut we use in Visual Studio (C++, C#).

To select code between two braces, we just need to press the key combinations CTRL+SHIFT+]  after placing the cursor either on the opening or closing brace (in C++ and C#: Curly brace/ Square bracket/ Parentheses).

Another thing we can do is – travel/move between two parenthesis using key combinations CTRL+] .(applies to both SQL Server and Visual Studio)

Thanks for reading.  

About these ads

About Suvendu

My focused area of learning are ASP.Net, SQL Server, Javascript, Telerik, HTML, CSS ,MVC architecture etc. My areas of interest includes Windows Phone development, Silverlight etc. Blogging and sharing knowledge is my passion. I blog regularly at https://suvendugiri.wordpress.com/

Posted on July 7, 2012, in Visual Studio and tagged , . Bookmark the permalink. Leave a Comment.

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 )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: