ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Reformat XML Doc comments

Last modified: 11 February 2024

ReSharper can reformat XML documentation comments according to your preferences.

Note that ReSharper does not reformat plain comments like:

or

To reformat XML doc comments, use code cleanup. You can either run code cleanup with the built-in profile Built-in: Full Cleanup or run it with a custom profile solely targeted at your specific task.

If you want to reformat XML doc comments without opening the Code Cleanup dialog to choose a profile, you can bind the default Reformat Code profile to the silent cleanup and run it by pressing Ctrl0E,0F. You can also create a custom cleanup profile that would combine reformatting XML doc comments with other code style tasks.

This feature is supported in the following languages and technologies:

The instructions and examples given here address the use of the feature in C#. For more information about other languages, refer to corresponding topics in the Languages and frameworks section.