madskristensen / RainbowBraces

A Visual Studio extension
Apache License 2.0
132 stars 7 forks source link

Also colorize "generics" angle brackets, like Task<Foo<List<Baz>,Bar>> #23

Closed hdkesting closed 1 year ago

hdkesting commented 1 year ago

Is your feature request related to a problem? Please describe. For deeply nested generics, figuring out the right <> pair may be as difficult as for nested braces and brackets.

Describe the solution you'd like Treat < and > (when used in generic types, not in XML comment tags or as comparison - less than/greater than) the same as {},(), [], so also include it in the color cycling. No need to set up a different cycle for these specifically.

MiniverCheevy commented 1 year ago

I was about to enter an issue requesting this feature

WolfgangVogl commented 1 year ago

I installed the latest version (1.0.88) in Visual Studio (version 17.5.1) - but the angles are still not colored (I tried with C++ code...).

For example this code:

template using TimeModeT = std::disjunction<std::is_same<T, UtcTime>, std::is_same<T, LocalTime>>;

No colors for < and >.