visual-studio-code

How to change VSCode search highlight color


When I'm searching for something in VSCode enter image description here

and highlight the search enter image description here

the text is not readable anymore. Is it possible to only change this highlight background?

If yes, what is the required variable?


Solution

  • Open your Settings in JSON format

    enter image description here

    and add the below property to the main object

    "workbench.colorCustomizations": {
        "selection.background": "#202020"
    }
    

    Here #202020 is a shade of black. You can use the color code of your choice.

    Refer Base Colors for all the base color properties and Input-Control for all the input control specific properties.

    Additional Reference: Customizing Color Theme - Docs