ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Line Breaks and Wrapping

Last modified: 14 November 2024
ReSharper options: Code Editing | C/C++ | Formatting Style | Line Breaks and Wrapping

This page is used to configure line breaks in certain positions of source code. Options in this page are applied when ReSharper reformats existing code or when you type new code. You can adjust the values and check the preview pane at the bottom of the page to see how your preferences affect the code.

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