Posted 9 months ago
by Mike Deck
-
Autodesk, Inc.
Version: 24.1.1
Platform: .NET 6.0
Environment: Windows 10 (64-bit)
To reproduce:
- start the Visual Basic Editor (.NET Lang. Add-on) demo
- fix the syntax error on the "Dim errorTest" line
- above the DemoTest sub, add two functions:
Function SingleArg(r As Double) As Double
Return r
End Function
Function TwoArgs(r1 As Double, r2 As Double) As Double
Return r1 + r2
End Function
- in DemoTest, add this line:
If TwoArgs(2, 3) > 3 Then
- Hit Enter
Result: the next line has the same indent as the If line. The problem does not happen if you call SingleArg instead.
If you enter something in the If block and proceed, then Format Document can be used later to fix the indent.
[Modified 9 months ago]