WebStorm
 
Get WebStorm

Add attribute

Last modified: 26 May 2024

The Add Attribute refactoring allows you to add an attribute to a set of XML tags. If this refactoring is invoked, attributes matching the requested attribute name and value will be added to tags with the selected tag name. Optionally, the requested attribute may be added only to tags that do not already contain the selected attribute. This bulk addition of attributes is useful as XML schemas evolve.