To reformat code with Code Cleanup
  1. Make sure that formatting settings configurable in the tabs listed above comply with your coding practices/standards.
  2. Open the Code Cleanup dialog box from the text editor or Solution Explorer as described in Running Code Cleanup.
  3. When the Code Cleanup dialog box opens, select Reformat Code in the Available Profiles area.
  4. Click Run to perform Code Cleanup. ReSharper will reformat code in your selection, file, directory, project, or solution (depending on how you chose to run Code Cleanup) according to your settings.