C# Visual Basic中的封闭大括号代码导航

C# Visual Basic中的封闭大括号代码导航,c#,vb.net,visual-studio-2019,C#,Vb.net,Visual Studio 2019,使用Visual Studio 2019 for C#和Visual Basic。命令Options>Keyboardboard>Edit.GotoBrace配置为使用Ctrl+]。两个示例使用: 例1 例2 等效的#Region/#End Region导航在VB中工作,但不适用于If-Then/End-If和其他类似的结构。VisualBasic中是否有任何东西可以在下面的示例中使用 If (something) Then // Place cursor here. Is there a ke

使用Visual Studio 2019 for C#和Visual Basic。命令
Options>Keyboardboard>Edit.GotoBrace
配置为使用Ctrl+]。两个示例使用:

例1 例2 等效的
#Region/#End Region
导航在VB中工作,但不适用于
If-Then/End-If
和其他类似的结构。VisualBasic中是否有任何东西可以在下面的示例中使用

If (something) Then // Place cursor here. Is there a keyboard shortcut or command...
    DoSomething()
End If // ...to end up here?

CTRL+SHIFT+UP/DOWN
?@Jimi:不在我的Visual Studio中
Ctrl+Shift+Up
将焦点从代码移到“项目”下拉列表,而
Ctrl+Shift+Down
将焦点移到底部的“缩放”下拉列表。1。VB和C#中的命令不是一对一的。2.有一些选项和快捷键设置,您可以检查并设置所需的方式。。我记得在过去的好日子里,VS会问你-你想要vb还是c开发者设置。很难说,我有一个自定义配置,可以迁移到VS的新版本。这些快捷方式链接到
Edit。以前的highlightedreference
/
Edit。下一个highlightedreference
,在文本编辑器中。在可视化设计器中,要编辑.sizeControl控件,请执行以下操作:
Edit.sizeControl控件
Edit.sizeControl控件
#region Constants // Place cursor on this #region, hit Edit.GotoBrace...
public readonly string CONSTANT001 = "a001";
//...
public readonly string CONSTANT100 = "a100";
#endregion // ...and end up here! Nice, again.
If (something) Then // Place cursor here. Is there a keyboard shortcut or command...
    DoSomething()
End If // ...to end up here?