score:1

Accepted answer

by default the vscode will enable color picker for stylesheet files such as .css, .less, .scss and .sass

in order to have the color picker for other file types, wherever there is an valid hex tag, also to make the valid answer more complete, there are two steps to follow,

  1. install extension vscode-color-picker.

  2. add following to the seetings.json of your vscode, since by default it enables for [python,javascript,typescript]

"vscode-color-picker.languages": [
"php",
"html",
"css",
"python",
"jsonc",
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue"
]

Related Query

More Query from same tag