Braces Layout
![ReSharper options: Code Editing | C++ | Formatting Style | Braces Layout ReSharper options: Code Editing | C++ | Formatting Style | Braces Layout](https://resources.jetbrains.com/help/img/dotnet/2024.1/CodeEditing_Cpp_FormattingStyle_BracesLayout.png)
Use this page to adjust the way ReSharper arranges braces when it generates new and reformats existing 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.
If there are .editorconfig, .clang-format, or _clang-format files that affect your solution, preferences on this page could be overridden by EditorConfig styles or Clang-Format styles. You will see a yellow warning if at least one preference on the page is overridden by EditorConfig or Clang-Format styles for the current file, each overridden preference will also be highlighted with yellow. For example:
![Code formatting options overridden by EditorConfig styles Code formatting options overridden by EditorConfig styles](https://resources.jetbrains.com/help/img/dotnet/2024.1/EditorConfig_in_options.png)
Last modified: 11 February 2024