Visual Studio automatically entering double quotes on style attribute when typing
Posted on 2007-11-14
Visual Studio 2005.
when i am typing away in my aspx file and start typing any attribute, like Class="MyClass", I have to type the double quotes. But when i type the STYLE tag, style="text-align: right;", the quotes are auto inserted.
This is most annoying because it is in consistent. I end up typing STYLE=""test-align: right;"".
To replicate, type the following in VS source mode.
it should look like this after your type the equals sign
But since I am used to having to type the double quotes for every other attribute except for style, *rant* :), I end up over double-quoting.
Is there a way to stop VS from doing this either by
1. Stop the auto quotes from being generated on the STYEL attribute.
2. Able to set all other attributes to automatically generate double quotes (i think this would be prefered).