Add subtag
The Add Subtag refactoring allows you to add subtags with a specified name to tags with the selected tag name. Optionally, you can specify whether you want the new subtag added always or only to tags that do not have it yet. This bulk addition of subtags is useful as XML schemas evolve.
Add a subtag
Place the caret at the tag to add a subtag to, press Ctrl+Alt+Shift+T, and then select Add Subtag from the list.
In the dialog that opens, type the name and the value of the subtag to be created inside the selected tag and specify the scope to add the subtag in.
With the Directory scope specified, select the Recursively checkbox to include sub-directories.
Select the Limit to files with DTD:... checkbox to limit the scope to the files with the same
DOCTYPEas specified for the current file.
Specify what to do if the newly created subtag already exists in a tag.
To skip tags that already have subtags with the specified name, select the Add subtag only if absent checkbox.
To have subtags with the specified name and value added anyway, clear the Add subtag only if absent checkbox.

Click OK to continue immediately or click Preview to have WebStorm show the usages of the selected tag in the Find tool window where you can mark usages as included in or excluded from refactoring.
Click Show XSLT... to view a fragment of the XSLT that is equivalent to the requested refactoring. This fragment can be used by XSLT processors to perform the requested refactoring on files outside your WebStorm project.