Format Document : wrong indentation for Case Else in VB

SyntaxEditor for WPF Forum

Posted 7 months ago by Mike Deck - Autodesk, Inc.
Version: 22.1.0
Platform: .NET 4.8
Environment: Windows 10 (64-bit)
Avatar

The Format Document command (EditorCommands.FormatDocument) in a "VB .NET Language add-on" document has a problem with the following code:

If a > 3 Then
  Select Case b
    Case 1
    Case 2
    Case Else
  End Select
End If

The End If will be indented to the same level at the End Select.

If you comment out the Case Else, the formatting works fine.
It also works if you take out the If and End If.

Comments (1)

Posted 7 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Mike,

Thanks for letting us know about this.  We've fixed it for the upcoming maintenance release.


Actipro Software Support

The latest build of this product (v22.1.3) was released 20 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.