Skip to content

Blazor HTML Unintentionally Modified in Places I was not Editing (Additional Empty Lines Added for No Reason) #10406

Closed
@vsfeedback

Description

@vsfeedback

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


[severity:It's more difficult to complete my work]
I was working on a Razor component. One of the autusuggest/autocomplete features (either the one already included with Visual Studio, or GitHub Copilot, unsure of which) has added additional whitespace lines, rendering certain elements grammatically incorrect to the compiler. I was not modifying those lines, or even close to them. This has happened to me on more than one occasion, and I have to manually remove the whitespace.

I have included a screenshot of the issue, as well as two text files: one right before the issue occurred, and the other afterwards. I did not actually notice the problem until many changes later, making it impractical for me to Ctrl Z until the issue occurred, and easier to remove the whitespace lines manually, although this is a pain.


Original Comments

Feedback Bot on 5/14/2024, 06:19 PM:

(private comment, text removed)


Original Solutions

(no solutions)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions