Skip to main content

Change Tag

Changes a <tag></tag> pair to a user-specified tag.

#Purpose

Enables you to change the tag type by typing the new name once instead of having to change it for both opening and closing tags.

#Availability

Available from the context menus or via shortcuts:

  • when the caret is on a tag name, either within the opening or closing tag.

Note

The Change Tag code provider is not available in Visual Studio 2012.

#Notes

  • This code provider uses Linked Identifiers to allow you to change opening and closing tag names at once.

#Example

<div id="element1"><asp:Button runat="server" Text="Button1"></div>

Result:

<span id="element1"><asp:Button runat="server" Text="Button1"></span>

#Animation

rsChangeTag

See Also