Originally posted by blaylockbk March 17, 2021
VS code has a built-in color picker that is so handy for some languages but is not useable in a Python script.
Sometimes I have a variable or argument that represents a color RGB or Hex, and it would be wonderful if I could modify these with a color picker. It's probably not possible for the extension to automatically know these are colors, but it would be nice if I could manually invoke the color picker with a short cut, as discussed here microsoft/vscode#52364, and then click the color to insert it.
Color variable as RGB
Color argument as a Hex value
import matplotlib.pyplot as plt
plt.plot([1,2,3,4], color="#6666ff")
```</div>
Discussed in microsoft/vscode-python#15697
Originally posted by blaylockbk March 17, 2021
VS code has a built-in color picker that is so handy for some languages but is not useable in a Python script.
Sometimes I have a variable or argument that represents a color RGB or Hex, and it would be wonderful if I could modify these with a color picker. It's probably not possible for the extension to automatically know these are colors, but it would be nice if I could manually invoke the color picker with a short cut, as discussed here microsoft/vscode#52364, and then click the color to insert it.
Color variable as RGB
Color argument as a Hex value