如何更改VS Code中提示框的背景?

huangapple go评论61阅读模式
英文:

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.

如何更改VS Code中提示框的背景?

<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.

&quot;workbench.colorCustomizations&quot;: {
    &quot;editorHoverWidget.background&quot;: &quot;#00000000&quot;,
    // and some other related ones if you&#39;re interested:
    &quot;editorHoverWidget.foreground&quot;: &quot;#ff0000&quot;,
    &quot;editorHoverWidget.border&quot;: &quot;#ff0000&quot;,
    &quot;editorHoverWidget.highlightForeground&quot;: &quot;#ff0000&quot;,
    &quot;editorHoverWidget.statusBarBackground&quot;: &quot;#ff0000&quot;,
}

huangapple
  • 本文由 发表于 2023年5月21日 03:00:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/76296906.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定