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

淺唱寂寞╮ 提交于 2019-12-09 17:17:50

问题


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?


回答1:


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




回答2:


You can press Ctrl + } to move to the matching bracket.



来源:https://stackoverflow.com/questions/2743762/in-the-visual-studio-editor-is-there-a-keyboard-command-to-jump-to-the-matching

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!