vscode-css-variables icon indicating copy to clipboard operation
vscode-css-variables copied to clipboard

[Feature request] New setting to define when to trigger the extension

Open amaury-hanser opened this issue 2 years ago • 3 comments

  • I'm submitting a ...

    • [ ] bug report
    • [x] feature request
  • Description:

When using with emmet, this extension will take precedence over the emmet's suggestion.

  • What is the current behavior?

If I type br for background-repeat (emmet suggestion), it will first list all css custom properties, meaning that if I press tab, I won't get background-repeat but the first css custom property with the letters b and r (e.g. var(--breakpoint-2xl)).

  • Suggestion

It would be super nice to be able to define in the settings what will trigger the auto-complete.
You could define a string, let's say -- that would trigger the auto-complete and there would be no more conflict with emmet.

What do you think?

amaury-hanser avatar May 20 '22 12:05 amaury-hanser

+1 for this suggestion. I'm frequently getting autocompletes for css variables in unintended locations

paulrudy avatar Aug 31 '22 22:08 paulrudy

+1

hzb1 avatar Nov 18 '22 07:11 hzb1

I am also facing the same issue. I am getting autocompletes for css variables even when typing in CSS property:

image

Update

I was using the PostCSS VSCode extension and it seems to have a compatibility issue with this. Disabling the PostCSS extension and back to the VSCode built-in CSS and the plugin works just fine.

SukkaW avatar Jan 22 '24 07:01 SukkaW