ReSharper Web Help

Code Cleanup lets you remove a number of code redundancies automatically, instead of navigating between code highlights and removing them with quick-fixes.

To remove code redundancies using Code Cleanup
  1. Choose ReSharper | Options | Code Editing | Code Cleanup.
  2. Create a new profile as described in Creating Custom Profiles . In the Selected profile settings for the new profile, select Remove code redundancies.
  3. Click OK to save the new profile and close the ReSharper Options dialog box.
  4. Open the Code Cleanup dialog box from the text editor or Solution Explorer as described in Running Code Cleanup .
  5. When the Code Cleanup dialog box opens, select the newly created profile in the Available Profiles area.
  6. Click Run to perform Code Cleanup. ReSharper will remove all redundancies that don't require interaction with the user.

See Also