ReSharper 2017.2 Help

Line Breaks and Wrapping

ReSharper | Options | Code Editing | Visual Basic.NET | Formatting Style | Line Breaks and Wrapping

Use this page to configure how ReSharper should add or remove line breaks before/after specific language constructions and whether to wrap long lines exceeding the length specified by the Right margin (columns). Options in the Preserve Existing Formatting section are only applied when ReSharper reformats existing code while the remaining sections contain options that also take effect 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.

The options that you configure on this page apply in the following cases:

If there are .editorconfig files that affect your solution, preferences on 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 for the current file, each overridden preference will also be highlighted with yellow. For example:

Code formatting options overridden by EditorConfig styles

Last modified: 14 December 2017

See Also