Solved

how to move between brackets in visual studio

Posted on 2015-01-16
2
128 Views
Last Modified: 2015-01-20
In JDeveloper and GVim and so many other tools, there are easy ways to jump from one bracket or parenthesis to the matching bracket or parenthesis on the other side (from opening to closing or closing to opening).

Further you can usually hold down shift key to select the text between the objects.

The behavior I'm looking for is alt+shift+{ and alt+shift+} in JDeveloper... but I need to figure out how to do it in Visual Studio.

I'm not interested in collapsing code regions. I'm interested in moving the cursor between brackets and parens with a keyboard command.
0
Comment
Question by:gswitz
2 Comments
 
LVL 26

Accepted Solution

by:
Shaun Kline earned 500 total points
ID: 40553425
CTRL + ] used to work in Visual Studio. It appears that this key combination has been assigned to another menu item. You can add the Go To Brace menu option by customizing your menus. From there, you may be able to assign your own shortcut under Tools Menu -> Options -> Environment -> Keyboard.
0
 

Author Comment

by:gswitz
ID: 40560650
Ctrl+Alt+Arrow with resharper turns out to be my favorite way to extend, but ctrl+] does toggle between brackets.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question