ReSharper 2017.2 Help

Braces Layout

ReSharper | Options | Code Editing | C# | Formatting Style | Braces Layout

Use this page to adjust the way ReSharper arranges braces when it generates and reformats your code; in particular, there are several ways to position braces after if or for operators.

For every item, there is a preview pane in the bottom part of the page where you can observe changes after tweaking specific preferences.

The options that you configure on this page apply in the following cases:

If there are .editorconfig files that affect your solution, preferences on page could be overridden by EditorConfig styles. You will see a yellow warning if at least one preference on a page is overridden by EditorConfig styles for the current file, each overridden preference will also be highlighted with yellow. For example:

Code formatting options overridden by EditorConfig styles

Last modified: 14 December 2017

See Also

Procedures: