Skip to content

IDE0063 does not keep line breaks and indents correctly #52970

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:I'm unable to use this version]
When converting a block using statement to a simple using statement, Visual Studio delete next line break.
[using.png] (https://aka.ms/dc/file?name=B457d03b0d3d441e99acfe730f34e4737637546476486574335_using.png&tid=457d03b0d3d441e99acfe730f34e4737637546476486574335)

Also, the indentation of the code in the block may be incorrect after conversion. I'm not sure what the conditions are for this to happen.


Original Comments

Feedback Bot on 4/21/2021, 06:59 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Feedback Bot on 4/27/2021, 10:44 AM:

Thank you for sharing your feedback! Our teams prioritize action on product issues with broad customer impact. See details at: https://docs.microsoft.com/en-us/visualstudio/ide/report-a-problem?view=vs-2019#faq. In case you need answers to common questions or need assisted support, be sure to use https://visualstudio.microsoft.com/vs/support/. We’ll keep you posted on any updates to this feedback.


Original Solutions

(no solutions)

Metadata

Metadata

Assignees

No one assigned

    Labels

    4 - In ReviewA fix for the issue is submitted for review.Area-IDEBugDeveloper CommunityThe issue was originally reported on https://developercommunity.visualstudio.comIDE-CodeStyleBuilt-in analyzers, fixes, and refactorings

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions