Skip to content

Invoke color picker with shortcut #6761

@brettcannon

Description

@brettcannon

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

my_color = (.4, .5, .3)

Color argument as a Hex value

import matplotlib.pyplot as plt
plt.plot([1,2,3,4], color="#6666ff")
```</div>

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfixed in next version (main)A fix has been implemented and will appear in an upcoming version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions