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

Replace attribute with tag

Last modified: 01 September 2023

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