When I'm searching for something in VSCode
the text is not readable anymore. Is it possible to only change this highlight background?
If yes, what is the required variable?
Open your Settings in JSON format
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