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 you produce new code by typing or by using ReSharper's code completion features.
- When you produce new code by applying ReSharper's code templates.
- When new code is produces with the ReSharper's code generation features or refactorings.
- When you reformat existing code.
To configure auto-formatting of new code, use the Auto-format on semicolon and Auto-format on closing brace options on the page of ReSharper options.