Braces Layout
Use this page to adjust the way ReSharper arranges braces 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 selecting options in drop-down lists.
The options that you configure on this page apply in the following cases:
- When code is automatically formatted on editing or after pasting (you can toggle auto-formatting on the page of ReSharper options).
- When you produce new code by applying ReSharper's code templates, code generation features or refactorings.
- When you reformat existing code.
If there are .editorconfig files that affect your solution, preferences on this 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, each overridden preference will be also highlighted with yellow. For example: