转到Visual Studio中的“匹配括号"? [英] Go to Matching Brace in Visual Studio?

查看:116
本文介绍了转到Visual Studio中的“匹配括号"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2008中,是否有一种方法可以将右括号改为右括号?我发现有很多关于突出显示括号的内容,但是没有任何关于将光标移到括号上的信息.

Is there a way in Visual Studio 2008 to go from a closing brace to its opening brace? I've found a fair amount of stuff about highlighting the brace, but nothing about moving the cursor to it.

(此问题的VB.NET版本:在"If/End If"之间跳转的键盘快捷方式)

(VB.NET version of this Question: Keyboard shortcut for Jumping between "If/End If")

推荐答案

我为您找到了它:

将光标放在括号(您的选择)之前或之后,然后按 CTRL + ] .它可以使用括号(),方括号[]和大括号{}.从现在开始,您无需在哪里玩Waldo?找到大括号.

Put your cursor before or after the brace (your choice) and then press CTRL + ]. It works with parentheses ( ), brackets [ ] and braces { }. From now on you don’t need to play Where’s Waldo? to find that brace.

在MacOS上,使用 CMD + SHIFT + \

On MacOS, use CMD + SHIFT + \

这篇关于转到Visual Studio中的“匹配括号"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆