ReSharper Web Help

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

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