rsbondi / highlight-words

vscode extension to highlight all occurrences of words or expression
MIT License
53 stars 78 forks source link

Problem configuring colors? #31

Open bromelio opened 2 years ago

bromelio commented 2 years ago

Dear rsbondi,

I would like to omit lightgreen as highlighting color because the contrast is too low on my screen, but no matter what configuration I tried in Visual Studio Code's settings.json, it had no effect.

--> Can you please correct any mistake in my below settings.json configuration:

{ 
"window.zoomLevel": -1,

    "highlightwords.colors:"  [
        { "light": "#b3d9ff", "dark": "cyan" },
        { "light": "#e6ffb3", "dark": "pink" },
        { "light": "#ffd9b3", "dark": "magenta" },
        { "light": "#ffb3ff", "dark": "cornflowerblue" },
        { "light": "#b3ffb3", "dark": "orange" },
        { "light": "#ffff80", "dark": "green" },
        { "light": "#d1e0e0", "dark": "red" }
    ]   
}

or advise where else I am supposed to enter this configuration code?

(Instead of "highlightwords.colors" I also tried "highlight.configuration.colors" because that's what I found in the extensions' description in VSC, but that didn't work, either).

navmed commented 1 year ago

I was able to figure it out. This worked for me. You have to restart VS Code or reload the window, for the settings to take effect. The colors in the screenshot are from this plugin.

image