Skip to main content

Line Breaks

The Line Breaks options page specifies line break insertion rules for the Code Formatting tool.

Note

The options page is language-dependent. It means that the options set depends on the currently selected language.

opLineBreaks

Each tree view item specifies whether CodeRush Classic adds a line break at each occurrence of a certain construct or not. To clearly see how the current option affects your code, look at the code example at the bottom of the options page.

Note that if the Keep existing line breaks option on the General options page is on, CodeRush Classic leaves line breaks in existing code regardless of the specified Spacing rules. In any case, the rules affect newly generated code anyway.

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.