Re:How VSCode made bracket pair colorization 10,000x faster
by quietbritishjim on Thursday June 22, 2023 @11:47AM
(#36433991)
Seems like a fundamentally unsolvable problem. These techinques use a spectrum of colours for deeply nested brackets. (If you only have one or two levels of brackets then you don't need the colourisation in the first place.) But colourblind users fundamentally don't have that many choices of colours to pick from in the first place.
[ Parent
| on HN ]
Re:How VSCode made bracket pair colorization 10,000x faster
by Conscat on Thursday June 22, 2023 @11:49AM
(#36434019)
Modus Operandi provides accessibility options for colored bracket pairs in Emacs out of the box.
Re:How VSCode made bracket pair colorization 10,000x faster
by devbent on Thursday June 22, 2023 @11:52AM
(#36434079)
I use a space indent colorizer plugin that I use a grey scale color scheme with.
It isn't a complete replacement for bracket colorization, but it helps in a lot of cases.
(Not colorblind, I just prefer a grey scale theme for my indent reminders!)
Re:How VSCode made bracket pair colorization 10,000x faster
by aleksiy123 on Thursday June 22, 2023 @12:00PM
(#36434222)
Maybe they could use a superscript or subscript number instead?
Re:How VSCode made bracket pair colorization 10,000x faster
by pmarreck on Thursday June 22, 2023 @11:52AM
(#36434073)
It's not unsolvable. Colorblind people are missing one axis of color (such as the red-green axis). It is perfectly mathematically possible to pick colors that do not only differentiate along this axis, hence this option in many AAA games.
Here's an online simulator to see what colorblind people of various types see. Note that if you yourself try this and the colors for one of the examples don't seem to change from the "normal" version, see your eye doc...
Re:How VSCode made bracket pair colorization 10,000x faster
by dmonitor on Thursday June 22, 2023 @12:05PM
(#36434297)
just the ability to change the bracket colors with reasonable default selections for colorblindness seems like a more than reasonable request
Re:How VSCode made bracket pair colorization 10,000x faster
by pmarreck on Thursday June 22, 2023 @11:50PM
(#36442568)
Iām not colorblind but I would wholeheartedly agree because I know colorblind guys
Re:How VSCode made bracket pair colorization 10,000x faster
by bilalq on Thursday June 22, 2023 @12:53PM
(#36435134)
The extension already had a setting to tune the color palette even before it was merged into VSCode core.
Re:How VSCode made bracket pair colorization 10,000x faster
by kaveet on Thursday June 22, 2023 @12:59PM
(#36435226)
This might be my own personal experience, but one effect of my colorblindness is that I place far less emphasis on color-coding in the real world--I'll subconciously ignore things like status indicators. When I think of alternative solutions here, I tend to reach for variables like font weight instead.