ReSharper Web Help

ReSharper reformats C#, VB.NET and XML code according to settings configurable in the following tabs:

  • ReSharper | Options | Languages | C# | Formatting Style | Blank Lines
  • ReSharper | Options | Languages | C# | Formatting Style | Braces Layout
  • ReSharper | Options | Languages | C# | Formatting Style | Line Breaks and Wrapping
  • ReSharper | Options | Languages | C# | Formatting Style | Spaces
  • ReSharper | Options | Languages | C# | Formatting Style | Other
  • ReSharper | Options | Languages | Visual Basic .NET | Formatting Style | Blank Lines
  • ReSharper | Options | Languages | Visual Basic .NET | Formatting Style | Line Breaks and Wrapping
  • ReSharper | Options | Languages | Visual Basic .NET | Formatting Style | Spaces
  • ReSharper | Options | Languages | Visual Basic .NET | Formatting Style | Other
  • ReSharper | Options | Languages | XML | Formatting Style
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.

See Also

Procedures