简体   繁体   English

VSCode:更改 Select 框的背景颜色

[英]VSCode: Change Background Color of Select Box

I want to change background of this select box , but i didn't find any properties for this.我想更改此select box的背景,但我没有找到任何属性。

In the above example, the select box has dark color, how I can change it?在上面的例子中, select box是深色的,我该如何改变它?

I know I should add particular property to the workbench.colorCustomizations , but I don't know what to add.我知道我应该向workbench.colorCustomizations添加特定属性,但我不知道要添加什么。

You need to change dropdown.background property in your setting.json file.您需要更改 setting.json 文件中的dropdown.background属性。 Specifically,具体来说,

    "workbench.colorCustomizations": {
        "dropdown.background": "#ff0000" // changes to red background
    },

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM