Visual Studio uses XHTML tag closing for HTML5 tags

前端 未结 3 1846
时光说笑
时光说笑 2021-01-01 16:24

Whenever I type out tags that don\'t require an end tag, Visual Studio adds a forward slash to it, as if they were XHTML.

I think this is unclean and annoying, and I

3条回答
  •  情深已故
    2021-01-01 17:00

    What you could do is disable the auto closing tag option in Visual Studio.

    Go to Tools >> Options >> Text Editor >> HTML >> Formatting

    Uncheck the "Auto insert close tag" option.

    This will now allow you to type
    (for example) and it won't auto-complete it as

提交回复
热议问题