ReSharper 2017.1 Help

Blank Lines

ReSharper | Options | Code Editing | C# | Formatting Style | Blank Lines

This page lets you configure whether ReSharper should increase or decrease the number of blank lines around namespaces, members, regions and groups of import directives. You can adjust the values and check the preview pane in the bottom of the page to see how your preferences affect the code.

Options in the Preserve Existing Formatting section are applied when ReSharper reformats existing code whereas the Blank Lines section contains options that take effect when you type new 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 this 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, each overridden preference will be also highlighted with yellow. For example:

Code formatting options overridden by EditorConfig styles

Last modified: 12 October 2017

See Also