I am learning CSS and trying to use the RGB color picker on VS Code however whenever I click to select, the color picker closes before I can click anything else.
Basically, I need to change one value and open it again to change another.
I’ve tried setting the code format in the bottom right corner to CSS and I have also tried installing a separate color picker extension, however, I would quite like to use the built in one if I can get it to work.
2
Answers
Do you mean like this?
Image of RGB colour picker
Try to click it once, as if there is something wrong with your mouse, it may double click and cause it to close.
Also, you can directly input the values yourself, or you can check online for values.
This is probably a case of the issue ticket Color Picker closes prematurely after clicking anywhere in the picker. #197588, which might be related to Color picker immediately closes on click (not allowing cycling through presentations or changing opacity) when a presentation has additionalTextEdits #136965. I also don’t remember VS Code behaving like this before, and I don’t see any new settings about widget-closing behaviour, or the colour decoration behaviour. Add that with the high number of people also saying they are surprised by this in the issue ticket, and I’m convinced it’s a bug. What you can do is give the issue ticket a thumbs up to show support for it and see if your version/environment info has already been mentioned in the issue ticket, and mention it if not (you can copy the textual output of the
Help: About
command from the VS Code command palette and paste it there as a code block). You can also subscribe to the issue ticket to get notified about discussion and progress. Please avoid making noisy comments there like ones that only consist of "+1" / "me too" without any version/environment info.