WebStorm
 
Get WebStorm
You are viewing the documentation for an earlier version of WebStorm.

Replace tag with attribute

Last modified: 01 September 2023

The Replace Tag with Attribute refactoring allows you to replace sub-tags definitions on a set of XMLs tag with equivalent attributes. If this refactoring is invoked, all tags matching the selected tag's name on tags with the selected parent tag name may be removed, and equivalent attributes created. This bulk transformation of sub-tags to attributes is useful as XML schemas evolve.