madskristensen / Tweakster

A Visual Studio extension
Apache License 2.0
240 stars 23 forks source link

Feature suggestion: Clear Empty Lines On Format #48

Open JRC86 opened 3 years ago

JRC86 commented 3 years ago

Image this code.

var items = new List<Item>();
 <---Empty Line
for (int i=0; i<10;i++)
{
 <--- Empty Line
 <--- Empty Line
 <--- Empty Line
    items.Add(new Item { Id = Guid.NewGuid() });
}

preferred after formatting:

var items = new List<Item>();
 <---Empty Line
for (int i=0; i<10;i++)
{
    items.Add(new Item { Id = Guid.NewGuid() });
}

A Feature that clears the document of excessive empty lines would be nice, maybe with an option to set how many empty lines to allow between code.

EDIT: Woops! Formatting was more or less unreadable, updated. /J

madskristensen commented 3 years ago

All feature requests to this extension must be backed by a real Visual Studio suggestion registered at Developer Community. Please create one and post the link back here.

JRC86 commented 3 years ago

Hi. I created a feature suggestion at Developer Community: Here