You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Visual Basic: "Object initialization can be simplified (IDE0017)" wrong indent with custom tab/indent size #66071
Version Used: Visual Studio 2022 (17.4.1, also with 17.4.3)
Steps to Reproduce:
Module Program
Sub Main(args As String())
Dim testObj As New Test()
testObj.TestString = "harr"
testObj.TestInt = 5
End Sub
Private Class Test
Property TestString As String
Property TestInt As Integer
End Class
End Module
Tabs settings:
Expected Behavior:
The indent should be correct. In Visual Studio 2019, this worked:
Activity
Youssef1313 commentedon Dec 20, 2022
@skurth Can you update to 17.4.3?
I think this issue was fixed and backported to 17.4 (PR: #65382)
skurth commentedon Dec 20, 2022
@Youssef1313 I have updated to 17.4.3 and still have this issue.
skurth commentedon Jan 11, 2023
@Youssef1313 Still have this issue in 17.4.4
CyrusNajmabadi commentedon Jan 11, 2023
@skurth Does this repro with 17.5 or 17.6?
skurth commentedon Feb 28, 2023
@CyrusNajmabadi Works in 17.5 :) Thx!