开发者

How do I make VS2008 place double quotes around intellisense offerings

开发者 https://www.devze.com 2022-12-18 17:58 出处:网络
I am in the HTML editor (building an ASP.NET MVC view) and coding up HTML. The editor is handy with intellisense for various at开发者_如何学Ctributes, but when I select whatever VS2008 offers, it nev

I am in the HTML editor (building an ASP.NET MVC view) and coding up HTML.

The editor is handy with intellisense for various at开发者_如何学Ctributes, but when I select whatever VS2008 offers, it never places double quotes around them, as HTML says you should.

For instance:

<head runat=

offers server, but when I select it, I get:

<head runat=server

instead of

<head runat="server"

Is this a setting somewhere?


Not a setting, but if you start with a single quote, it will close it for you.

In HTML, you don't have to quote attributes.

In XHTML, you do.

Regardless, in the options you can set this:

Tools -> Options -> Text Editor -> HTML -> Format -> Insert attribute value quotes when typing

0

精彩评论

暂无评论...
验证码 换一张
取 消