ReSharper
 
Get ReSharper
You are viewing the documentation for an earlier version of ReSharper.

Reformat XML Doc comments

Last modified: 21 July 2022

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 Ctrl+E F. 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 details specific to other languages, see corresponding topics in the ReSharper by language section.