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

Add attribute

Last modified: 01 September 2023

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.