英文:
How can I change the background of hint boxes in VS Code?
问题
我无法使此提示框(参数提示)的框变为透明。我想能够看到它后面的代码。
英文:
I can't get the box of this tip box (parameter hints) to be transparent. I want to be able to see my code behind it.
<sup>I posted an image because it would be impossible to show the problem by posting the text, and anyway this isn't a question about the code itself. My question is how to adjust Visual Studio Code window settings.</sup>
I tried to find the setting to change it but its so hard cause there are so many settings.
答案1
得分: 2
The colour customization point you are looking for is editorHoverWidget.background
. Note that this customization point controls more than just what you've shown in your screenshot (parameter hints). As the name suggests, it controls all editor hover widgets. That includes things like the hover info from hovering the mouse over a symbol, and colour picker hover widgets. I'm not aware of any way to customize only specific types of hover widgets without affecting the other types.
In any case, Ex.
"workbench.colorCustomizations": {
"editorHoverWidget.background": "#00000000",
// and some other related ones if you're interested:
"editorHoverWidget.foreground": "#ff0000",
"editorHoverWidget.border": "#ff0000",
"editorHoverWidget.highlightForeground": "#ff0000",
"editorHoverWidget.statusBarBackground": "#ff0000",
}
英文:
The colour customization point you are looking for is editorHoverWidget.background
. Note that this customization point controls more than just what you've shown in your screenshot (parameter hints). As the name suggests, it controls all editor hover widgets. That includes things like the hover info from hovering the mouse over a symbol, and colour picker hover widgets. I'm not aware of any way to customize only specific types of hover widgets without affecting the other types.
In any case, Ex.
"workbench.colorCustomizations": {
"editorHoverWidget.background": "#00000000",
// and some other related ones if you're interested:
"editorHoverWidget.foreground": "#ff0000",
"editorHoverWidget.border": "#ff0000",
"editorHoverWidget.highlightForeground": "#ff0000",
"editorHoverWidget.statusBarBackground": "#ff0000",
}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论