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, the whole project or even solution.
Code cleanup can have various configurations (profiles) that you can 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 cleanup features 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 features are available in C# , some are available in several languages, others are language-specific. The table below lists all code cleanup features and languages/technologies where they are supported.