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

Reformat XML Doc comments

Last modified: 11 February 2024

JetBrains Rider can reformat XML documentation comments according to your preferences.

Note that JetBrains Rider 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 Reformat and Cleanup Code 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.