Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In the Visual Studio editor is there a keyboard command to jump to the matching bracket?

In Vi / Vim you can move to a bracket and press % and the editor would move the cursor to the matching bracket. This saved large amounts of time when moving around the large files in the editor. Is there a Visual Studio equivalent?

like image 732
AnthonyLambert Avatar asked Apr 30 '10 10:04

AnthonyLambert


People also ask

How do you match braces in Visual Studio?

Go to matching brace in Visual Studio with Ctrl+} shortcut To move the caret to the matching brace of the one it's currently on press Ctrl+}.

What is Ctrl K in VS Code?

To launch the Define Keybinding widget, press Ctrl+K Ctrl+K. The widget listens for key presses and renders the serialized JSON representation in the text box and below it, the keys that VS Code has detected under your current keyboard layout.


1 Answers

There is a keyboard binding Edit.GotoBrace which will do what you need.
The default binding is CTRL + ], which you can change here:

Tools -> Options -> Environment -> Keyboard

like image 65
tanascius Avatar answered Oct 06 '22 12:10

tanascius