WebStorm 2018.2 Help

XML Refactorings

Refactoring means updating the source code without changing the behaviour of the application. Refactoring helps you keep your code solid, dry, and easy to maintain. Learn more from Refactoring Source Code.

To invoke an XML refactoring

  • Right-click the element to refactor and select Refactor | XML Refactorings | <refactoring_name> from the context menu.

To rename a tag or an attribute

  1. Right-click the tag or the attribute to rename and select Refactor | XML Refactorings | Rename Tag or Refactor | XML Refactorings | Rename Attribute from the context menu.

  2. In the dialog that opens, type the new name of the tag or the attribute, select the scope in which you want to rename it, and click Refactor.

Last modified: 19 November 2018