ReSharper 2016.1 Help

Configuring Code Cleanup

ReSharper | Options | Code Editing | Code Cleanup

Out of the box, ReSharper provides two default configurations (profiles) of the code cleanup:

These profiles help in most cases but they cannot be configured. If you want to run code cleanup with the custom set of tasks, you need to create a custom profile.

To create a custom cleanup profile

  1. Choose ReSharper | Options in the main menu.
  2. Open the Code Cleanup options: ReSharper | Options | Code Editing | Code Cleanup.
  3. Click Add to create a new custom profile and specify a name for it.
  4. Make sure that your new profile is selected in the list of profiles in the Code Cleanup options page.
  5. Configure code cleanup profile settings in the Selected profile settings area.
  6. Click Save to apply the modifications and let ReSharper choose where to save them, or save the modifications to a specific settings layer using the Save To drop-down list. For more information, see Managing and Sharing ReSharper Settings.

Your newly created cleanup profile will be available in the Code Cleanup dialog box as you are running code cleanup. You can also set this profile to be used for the silent cleanup.

See Also

Last modified: 19 August 2016