Removes a tag pair while preserving the content within the tags.
This refactoring automates the common task of deleting a tag. Regardless of where you have initiated it, Remove Tag will automatically find the corresponding opening and closing tags, and deletes them.
- when the edit cursor or caret is on an opening or closing tag.
If the code provider is applied within a XAML document to a tag containing one of the following properties, these properties are moved to a child tag.
<div><img src="D:\Image1.jpg" id="img1" style="width: 100px;" /></div>
<img src="D:\Image1.jpg" id="img1" style="width: 100px;" />
This code provider is the opposite of Surround with Tag.