更改VSCODE中匹配变量的倒格颜色

发布于 2025-02-03 01:45:30 字数 461 浏览 2 评论 0原文

VSCODE突出显示在光标下的匹配事件默认情况下 突出显示的匹配事件 - 默认值 - 默认值

我想要的是改变变量匹配的背景颜色,光标。像这样 所需的突出显示

我得到的最接近 workbench.colorcustomization {“ editor.selectionhighlightbackground”:“#ff0000”}> 但是,如果当前变量在循环/交换机/等内部内部,则外部出现不是突出显示的,我也需要选择文本,而不仅仅是光标坐在那里。

提前致谢。

VSCode highlight matching occurrences under cursor by default
Highlighted matching occurrences - Default

What I want is to change the background color of variables matching occurrences under the cursor. Like this
Desired highlighting

The closest I got was with
workbench.colorCustomization{ "editor.selectionHighlightBackground": "#ff0000" }
however if the current variable is inside a loop/switch/etc, the outer occurrences isnt highlighte, also I need to have the text selected, not just with the cursor sitting there.

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挽心 2025-02-10 01:45:30

workbench.colorcustomization {}

set “ editor.wordhighlighttextbackground”带有所需颜色。当光标坐在那里时,这将改变高光颜色。

您可以使用链接上列出的其他类似的WordHighlight属性播放
https://code.visalstudio.com/api/api/api/api/references/references/theme-colorence/theme-color

In workbench.colorCustomization{}

set "editor.wordHighlightTextBackground" with desired color. This will change the highlight color when the cursor just sits there.

You can play with other similar wordHighlight properties listed at the link
https://code.visualstudio.com/api/references/theme-color

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文