views:

24

answers:

1

Is there any way to stop VS (specifically 2008) automatically inserting WebForms Ids in <asp: elements when pasting code into a view?

E.g. by default pasting this into a view:

<asp:Content ContentPlaceHolderID="TitleContent" runat="server"/>
</asp:Content>

Results, annoyingly, in this:

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"/>
</asp:Content>
+5  A: 

Tools > Options > Text Editor > HTML > Miscellaneous > Auto ID elements on paste in Source view

Wikser
Works a treat - thanks!
UpTheCreek