ReSharper Help

Code Style Assistance in XML

ReSharper supports code formatting in XML. The formatting rules can be configured in the Code Editing | XML | Formatting Style pgae of ReSharper options and applied with the Code Cleanup.

You can apply Code Cleanup to a selected block of code, to the opened file or to a number of files. To learn more, see Running Code Cleanup.

Consider the example below. Before code cleanup:

ReSharper_by_Language__XML__Code_Cleanup_01

After:
ReSharper_by_Language__XML__Code_Cleanup_02

You can also configure formatting rules for selected code.

See Also

Last modified: 21 September 2015