I frequently use the Edit -> Advanced -> Format Document command (Ctrl-K, D) in VS2010 when editing HTML markup.
I'm working on a site that uses HTML5 structural elements (<nav>, <header>, <footer and so on) - but I can't get Visual Studio to indent the tags' content when reformatting the document.
I've explored the options under Tools -> Options -> Text Editor -> HTML -> Formatting -> Tag Specific Options, and explicitly added the HTML5 elements I'm using to the "Client HTML Tags" section
but this doesn't indent the tag content when reformatting.
Is this unsupported? A known bug? Some sort of configuration setting I've missed?
发布评论
评论(1)
将验证目标更改为 HTML5。
更多信息:http://silverlightfeeds.com/post/3217/HTML5_Improvements_with_the_ASP.NET_MVC_3_Tools_Update.aspx
Change the validation target to HTML5.
more info: http://silverlightfeeds.com/post/3217/HTML5_Improvements_with_the_ASP.NET_MVC_3_Tools_Update.aspx