Automatically insert double quotes when typing an attribute in HTML, XML or ASP .NET in Microsoft Visual Studio


If you want to automatically insert double quotes when typing an attribute, use the Microsoft Visual Studio option:

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

When you type runat= in a div it wil automatically insert quotes:

<div runat="server">


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.