DEV Community

Discussion on: VSCode CSS Variable Autocomplete

Collapse
 
tarasis profile image
Robert McGovern • Edited

Looks very useful. Two questions:

1) In there a way to get rid of the dupe intellisense options? (So right now I get two sets of the CSS Variables, those from this plugin with the color swatch, and the default completion without color swatch, SOMETIMES when I re-open the window the default completions don't appear)

2) How would I limit the plugin to the current directory and any subdirectories?

I have a structure that includes many practice projects, but I'm only editing one at a time. Normally I'm just working on a single project at a time, but I have the whole tree open in VSCode, rather than a specific directory (so I can look at code as needed without having to open a second instance of VSCode)

root
    --index.html
    --css/style.css
    projects
        project1
           --index.html
           --css/style.css
        project2
           --index.html
           --css/style.css
        project3
           --index.html
           --css/style.css
        project4
           --index.html
           --css/style.css
Enter fullscreen mode Exit fullscreen mode

So If I have only project 4's index.html and any still sheets it refers to open, is there a way to limit the plugin to only those files?

Cheers