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

查看:44
本文介绍了转到 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")

推荐答案

我为你找到了这个:在 Visual Studio 中的大括号之间跳转:

将光标放在大括号(您的选择)之前或之后,然后按 CTRL + ].它适用于括号 ( )、方括号 [ ] 和大括号 { }.从现在开始你不需要玩沃尔多在哪里?找到那个大括号.

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.

使用上述快捷键,您也可以按住SHIFT进行选择.

With the above shortcut, you can also hold SHIFT to select.

在 MacOS 上,使用 CMD + SHIFT + .

On MacOS, use CMD + SHIFT + .

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

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