Vetur: How to active Color Picker in the vscode new version 1.15

Created on 11 Aug 2017  路  19Comments  路  Source: vuejs/vetur

qq20170811-092609
In .scss file

qq20170811-092652
In .vue file

Vscode introduced a color picker for color customizations in 1.15 version.
I want to use it in .vue file. But it not work.

[email protected]
[email protected]

feature-request

Most helpful comment

@octref It seems like quite many people want this feature. I think we can add it and also add an option to disable color picker.

All 19 comments

In Issues #28. Vetur not support color indicator. So will not support color picker? 馃槼

@octref It seems like quite many people want this feature. I think we can add it and also add an option to disable color picker.

I update [email protected] . It has color decorators. But the color picker can not open. Is that so?

Yes, see #396.

Wow, I will look at it later.

VS Code 1.16.1

Color indicator is displayed, but neither hovering, nor clicking opens up the color picker: it just shows css property hint.

Also experiencing this issue, hovering over colors in .vue files doesn't open the color picker in VS Code 1.17.0.

we still need a color picker)

the problem seem to be unsolved in VS Code 1.18.1

Sadly, color picker is still in proposed stage. We will await its official adoption in vscode.

Actually the new proposed API is better than our implementation now. Migrating to it might be better choice.

Just want to open this issue, since there is still no color picker support for vue files in VS Code.

It works fine for me. If you want to open or reopen an issue, please provide a concrete reproduction.

screen shot 2018-05-07 at 10 05 26 am

I'm not sure about the vue files. But I used to hover (or click) on the color square preview to open the color picker. But doing that now, will only show you the property hints.

Try hovering on the values instead.

If you hover on the color square first, and then on the values, it won't work. Move away and hover on the value directly again.

Color picker not work with .asp files at this moment :(

It does not work with style lang = "stylus" :-1:

It also doesn't work for python files (.py). It seems the color picker only works on some specific files (.css; ...?).

But it would be very desirable to have this feature also for all kind of languages. But maybe this would require to make it configurable for specific languages, because of the recognition of the different color formats/representations in these languages.

@Nutznieser Why would Vetur support Python files? If you want color picker in Python, open issues for https://github.com/Microsoft/vscode-python.

Was this page helpful?
0 / 5 - 0 ratings