Collapse Code: handle additional cases
In LinqPad we can use the +/- buttons in the UI to hide blocks of code; whole methods, ELSE blocks etc.
I would love to see this extended to the following:
- New Lists. I don't always want to see all the new items added to a new list, so seeing just
Options = new List<Thing>
is fine rather than
Options = new List<Thing>
{
new Thing(),
new Thing(),
.......
}
- Property Initialization. Similarly, I don't always want to see all the properties that are set during an object's initialization. So seeing it collapsed to
Person p = new()
is fine rather than:
Person p = new()
{
Age = 97,
Name = "Fred",
....
}
1
vote
Dr JGriff
shared this idea