Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS code change background color hover element in menu

How can I change the blue color of the hovered element in menu? Now I see that:

enter image description here

I want to change the blue with another color. Thanks


1 Answers

In version 1.38, in settings.json create a "workbench.colorCustomizations" property if you don't already have it, then under that you can use the property "menu.selectionBackground". Unfortunately, some settings like this have the word "hover" in the name, some use "focus" in the name, and in this case it is "selection", so it's not consistent.

Example:

"workbench.colorCustomizations": {
    "menu.selectionBackground": "#f0de77"
}

Be aware that this highlight/selection color is also controlled by the property "list.activeSelectionBackground", but "menu.selectionBackground" has preference.

Settings.json on Windows is usually located in this folder: %AppData%\Code\User, I don't know about other operating systems.

like image 131
Gen1-1 Avatar answered Dec 20 '25 10:12

Gen1-1



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!