Visual Studio uses XHTML tag closing for HTML5 tags

前端 未结 3 1844
时光说笑
时光说笑 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:10

    For Visual Studio 2012, go to Tools -> Options -> Text Editor -> HTML -> Formatting and click Tag Specific Options.

    Under Default Settings -> Client tag does not support contents, set Closing tag to No closing tag.

    screenshot of settings interface

提交回复
热议问题