[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Collapse]CodeRush Classic
  What's New
 [Expand]System Requirements
  [Expand]Code Analysis
  [Collapse]Code Style
    Code Cleanup and Member Organization
    Code Formatting
   Feature Advisor
   FrictionFree Mode
   Mastering CodeRush Classic Features
  [Expand]Visualization Tools
  [Expand]Advanced Selection Tools
  [Expand]Clipboard Tools
  [Expand]Coding Assistance
   Unit Test Runner
 [Expand]Visual Elements
 [Expand]Tool Windows
 [Expand]CodeRush Classic Options
  Get More Help
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Code Formatting

CodeRush Classic code formatting tool formats your code as you need. You can set options for spaces, blank lines, alignment, line breaks, and indentation in a variety of code constructs.

By default CodeRush Classic applies code formatting only to the code it generates. To apply CodeRush Classic formatting whenever Visual Studio's active language service auto-formats the code, check the appropriate option on the General options page. This options page also enables you to specify other main options for the Code Formatting tool.

Other code formatting options are grouped into the following options pages.

Options page Description
Blank Lines Blank line usage rules.
Indentation Indentation insertion rules.
Line Breaks Line break usage rules.
Other / Language Specific Formatting options unrelated to other categories.
Spacing Space insertion rules.
Wrapping / Alignment Wrapping and alignment rules.

This product is designed for outdated versions of Visual Studio. Although Visual Studio 2015 is supported, consider using the CodeRush extension with Visual Studio 2015 or higher.

Is this topic helpful?​​​​​​​