Code cleanup allows you to apply a number of ReSharper's code style features (see the table below) in a bulk mode to instantly eliminate code style violations in one or more files, a project or in the entire solution.
Code cleanup can have various configurations (profiles) to apply in different cases according to your needs. There are two default profiles that can be applied out-of-the-box:
- Reformat Code that only applies code formatting rules
- Full Cleanup that applies all available cleanup tasks except updating file header.
Fixing inconsistent naming is not included in code cleanup because it can lead to naming conflicts. To learn how to deal with inconsistent naming, see Naming Style.
Most of ReSharper's code cleanup tasks are available in C# , some are available in several languages, others are language-specific. The table below lists all code cleanup tasks and languages/technologies where they are supported.