The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.

CodeFormatting

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.

EnableCodeFormatting

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.
Note

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.