ASP.NET MVC / VS: How to stop VS by inserting automatic identifiers in the inserted form?

Is there a way to stop VS (in particular, 2008) by automatically inserting WebForms identifiers into elements <asp:when you paste code into a view?

eg. inserting this into the view by default:

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

The results are, annoyingly, in this:

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"/>
</asp:Content>
+3
source share
1 answer

Tools> Options> Text editor> HTML> Miscellaneous> Auto-identifier elements when pasted in the Source view

+4
source

Source: https://habr.com/ru/post/1749716/


All Articles