Visual Studio uses XHTML tag closing for HTML5 tags

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

    For completeness I'm posting this answer. Although we're in 2014 now, with Visual Studio 2013 and HTML5 is getting more and more supported by the major browsers, Visual Studio still behaves the same as ... like always?

    The option is just a bit different than in 2010 I assume (based on accepted answer).

    Complete element tags in XHTML style with />

提交回复
热议问题