Codist icon indicating copy to clipboard operation
Codist copied to clipboard

Suggestion: Option to show generic constraints in multiple lines

Open laicasaane opened this issue 3 years ago • 1 comments

The current presentation is hard to read when the constraint list is large. I think having an option to break down this list into multiple lines would be great.

image

Sample code

public interface IRunable { }

public class Runner<T0, T1, T2, T3, T4, T5, T6, T7, T8>
    : IRunable
    where T0 : IRunable, new()
    where T1 : IRunable, new()
    where T2 : IRunable, new()
    where T3 : IRunable, new()
    where T4 : IRunable, new()
    where T5 : IRunable, new()
    where T6 : IRunable, new()
    where T7 : IRunable, new()
    where T8 : IRunable, new()
{
}

laicasaane avatar Aug 10 '22 09:08 laicasaane

Thank you for posting this request.

I don't like the current representation in VS either. Once it is overridden, I have to handle all situations in the Quick Info title, not only generic constraints.

wmjordan avatar Aug 10 '22 10:08 wmjordan

Implemented in version 6.6

wmjordan avatar Oct 24 '22 03:10 wmjordan