not2qubit
not2qubit

Reputation: 17067

How to change the selected text background highlight color in vscode editor?

I want to change the selected text background highlight color in the vscode code editor.

The default seem to be some kind of light-blue for the selected word, and some kind of gray for the other words with same text.

enter image description here

How do I change the background color of these selected items?

For example, I would like the gray shade to be Goldenrod (#FFDAA520).

Upvotes: 3

Views: 2583

Answers (1)

not2qubit
not2qubit

Reputation: 17067

I found it after a lot of trial & error:

    "workbench.colorCustomizations": {
        //"editor.findMatchHighlightBackground": "#DAA520",
        //"editor.findRangeHighlightBackground": "#DAA520",
        "editor.selectionHighlightBackground": "#DAA520",
        //"editor.inactiveSelectionBackground": "#DAA520",
        //"editor.findMatchBackground": "#DAA520",
    }

Upvotes: 6

Related Questions