ReSharper | Options | Code Editing | C# | Formatting Style | Line Breaks and Wrapping
Use this page to configure how ReSharper should add or remove line breaks before/after specific language constructs, and whether to wrap long lines exceeding the length specified by the Hard wrap at preference. You can adjust the values and check the preview pane at the bottom of the page to see how your preferences affect the code.
Note that preferences with names starting with Keep existing... allow you to keep existing formatting for other preferences in the same group.
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 Environment | Editor | Behavior page of ReSharper options Alt+R, O.
ReSharper's settings are saved in settings layers, which allow you to have different settings for different solutions and to share your settings with your team.
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 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: