Using Visual Studio 2019 for C# and Visual Basic. The command Options > Keyboardboard > Edit.GotoBrace is configured to use Ctrl+]. Two example uses:
Example 1
if (something)
{ // Place cursor on this brace, hit Edit.GotoBrace...
DoSomething();
} // ...and end up here! Nice.
Example 2
#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.
The equivalent #Region / #End Region navigation works in VB, but not If Then / End If and other similar constructs. Is there anything in Visual Basic that would work in the example below?
If (something) Then // Place cursor here. Is there a keyboard shortcut or command...
DoSomething()
End If // ...to end up here?