Skip to content

Volar wrongly auto-closes some HTML tags  #970

@mariusa

Description

@mariusa

Hi and hope you are getting better!

VSCode auto-closing tags works fine on .html files. It considers which elements are valid
https://stackoverflow.com/questions/1946426/html-5-is-it-br-br-or-br

eg it leaves <br> alone.

Volar changes <br> to <br /> on save. (found out by disabling all other extensions)

Please let VSCode handle the HTML inside <template> for .vue files, as it already has all kinds of rules which work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions