Follow the steps below to configure the code style for blank lines and apply this style to all the code in your project:
Configure the maximum number of blank lines in your code using the Excessive Blank Lines group:
Configure the number of blank lines between different code elements. For instance, you can add line breaks before and/or after the #region directives.
Check the Format document item and uncheck any unnecessary items.
Use the Code Cleanup toolbar button to run Code Cleanup.
You can perform Code Cleanup on the entire project using the Cleanup Project item in the project's context menu.