Welcome to MSDN Blogs Sign in | Join | Help

News

  • These postings are provided "AS IS" with no warranties, and confer no rights. Use of included code samples are subject to the terms specified Terms of Use
Tip#66: Did you know... how to insert quotes values automatically while typing the attrib values?

It's a nice time saver if you would like the HTML editor to automatically add quotes for the attribute values while you are typing.

To set this option select Tools->Options. Check Show all settings. From the left pane select Text Editor -> HTML -> Format and check the insert attribute value quotes when typing checkbox.

 

image

 

Now as soon as you hit "=" for the attrib value, editor will insert a pair of quotes and show the intellisense for the values accepted.

Select a value from the intellisense and press enter/tab. Cursor would jump out of the pair of quotes (you will have to hit the arrow key after entering the attrib value, if it doesn't show up a list of values).

 

image

 

Deepak Verma
SDET | Visual Web Developer

Posted: Friday, May 29, 2009 4:53 PM by WebDevTools

Comments

What's New said:

It's a nice time saver if you would like the HTML editor to automatically add quotes for the attribute

# May 29, 2009 10:54 PM

DotNetShoutout said:

Thank you for submitting this cool story - Trackback from DotNetShoutout

# May 30, 2009 5:08 AM

Jason Haley said:

Interesting Finds: May 30, 2009

# May 30, 2009 10:04 AM

Chandan said:

Thanks for the tip, it saves valuable time, really!

# May 30, 2009 11:24 AM

Jean Yu said:

Stupid Microsoft.  It should be default setting.

# May 30, 2009 4:12 PM

Miu Golladay said:

I agree with Jean.  It should be default setting. Thanks Jean.

# May 30, 2009 4:14 PM

ScottGu's Blog said:

Here is the latest in my link-listing series .  Also check out my ASP.NET Tips, Tricks and Tutorials

# May 30, 2009 6:40 PM

BusinessRx Reading List said:

Here is the latest in my link-listing series .  Also check out my ASP.NET Tips, Tricks and Tutorials

# May 30, 2009 6:47 PM

Microsoft and DiscountASP.NET news said:

Some good stuff: (Thanks Scott) May 30th Links: ASP.NET, AJAX, ASP.NET MVC, Visual Studio Here is the

# May 30, 2009 7:44 PM

Thanigainathan said:

Hi,

Its a nice tweak.

Thanks,

Thani

# May 31, 2009 2:16 AM

Pooya said:

I recently was thinking about this. Great find!

# May 31, 2009 7:21 AM

anup hosur said:

nice article.. we can save time a lot..

# May 31, 2009 12:41 PM

ASP.NET Chinese Blogs said:

【原文地址】 May 30th Links: ASP.NET, AJAX, ASP.NET MVC, Visual Studio 【原文发表日期】 Saturday, May 30, 2009 3:39

# May 31, 2009 9:46 PM

PetterLiu said:

如果你愿意在HTMLEditor中输入属性值时自动加入双引号。设置选项菜单Tools-

# June 1, 2009 3:50 AM

Kwyjibo said:

Thank you for posting this! I kept saying to myself...there HAS to be a way to make it put the quotes in automatically. I honestly have no idea why this isn't turned on by default.

# June 3, 2009 8:31 PM

Блог Скотта Гатри (перевод) said:

Вот последняя статья из моей серии списка ссылок . Также обратитесь к моим страничкам Советы, секреты

# June 15, 2009 11:25 AM

Kelps said:

I use this setting since VS2005. I always wondered why isn't this the default setting?

# July 1, 2009 12:26 PM

Steven Berkovitz said:

This is a great feature except there is a VS bug (that I have reported on MS Connect but has since been closed as non-repro) that has been plaguing me for years across 4 different dev boxes where this setting mysteriously defaults to disabled!

# July 1, 2009 3:43 PM

Rejan said:

This should have been a default setting. Nevertheless, a good time saver. Thanks for sharing.

# July 30, 2009 1:13 AM

akshay said:

Thanks.. it is helpfull for me...

# September 9, 2009 3:34 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker