codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.92k stars 363 forks source link

CodeMain adds unwanted blank line in properties #580

Open jackmoskowitz opened 6 years ago

jackmoskowitz commented 6 years ago

I have a property:

private Box _box = null; public Box box { get { return (_box); } set { if (value != _box) { _box = value; OnPropertyChanged("box"); } } }

After cleaning, an unwanted blank line is inserted:

private Box _box = null;

public Box box { get { return (_box); } set { if (value != _box) { _box = value; OnPropertyChanged("box"); } } }

How do I prevent that?

codecadwallader commented 6 years ago

By default we insert a blank line before multi-line properties. To disable that:

CodeMaid->Options->Cleaning->Insert->Insert blank line padding before->multi-line properties