WebStorm 2024.3 Help

Merge tags

The Merge Tag intention allows you to merge two sequential and compatible XML tags into one larger tag. The tags to merge must have the same name and attributes. To merge two tags, simply select the first tag to merge, and invoke the intention with Alt+Enter. Then select Merge Tags, and the tags will be merged. Merging effectively replaces the two tags with a new tag. The new tag will have the same attributes as the original tags, and its contents will be created by appending the contents of the first tag with the contents of the second.

Last modified: 11 February 2024