changing ASP.NET tag formatting

Posted by Steven on Stack Overflow See other posts from Stack Overflow or by Steven
Published on 2010-04-12T17:41:06Z Indexed on 2010/04/12 17:42 UTC
Read the original article Hit count: 331

When I drag a Label control to my document, I get the following code :

<asp:Label ID="Label1" runat="server" text="Label"></asp:Label>

I prefer my code to look like the following instead :

<asp:Label ID="Label1" runat="server" Text="Label" />

How can I get .NET to do this by default? I looked in Tools -> Options -> Text Editor, where you'd expect to find it, but I couldn't find anything relevant there.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about .NET