如何关闭“匹配"在 VS Code 中突出显示? [英] How to turn off "matching" highlighting in VS Code?

查看:49
本文介绍了如何关闭“匹配"在 VS Code 中突出显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不希望 Visual Studio Code 突出显示匹配的括号、同一变量的所有出现等.我觉得这很分散注意力.但是,我找不到禁用此功能的方法.

I don't want Visual Studio Code to highlight matching brackets, all occurrences of the same variable, etc. I find it very distracting. However, I can find no way to disable this feature.

我似乎能够更改的唯一突出显示选项是editor.selectionHighlight"和editor.renderLineHighlight",两者都不起作用.

The only highlight options I seem to be able to change are "editor.selectionHighlight" and "editor.renderLineHighlight", and neither work.

是否可以禁用匹配突出显示"?或者编辑我的主题,使高亮颜色和高亮边框与背景颜色相同?

Is it possible to disable "matching highlighting"? Or maybe to edit my theme, so that the highlight color and highlight border are the same as the background color?

推荐答案

有不同类型的高亮显示:

There are different types of highlighting:

"editor.occurrencesHighlight": false

2.选择突出显示(文档中的类似块)

"editor.selectionHighlight": false

3.匹配括号突出显示

"editor.matchBrackets": false


还有第二种方法 - 让它们不那么突兀(或完全透明):


There's a second way - make them less obtrusive (or completely transparent):

"workbench.colorCustomizations": {
    "editor.selectionHighlightBackground": "#0000", // similar selection
    "editor.selectionHighlightBorder": "#0000",

    "editor.wordHighlightStrongBackground": "#0000", // syntax variable assignment
    "editor.wordHighlightStrongBorder": "#0000",

    "editor.wordHighlightBackground": "#0000", // syntax variable
    "editor.wordHighlightBorder": "#0000",

    "editorBracketMatch.border": "#0000",// brackets
    "editorBracketMatch.background": "#0000",
}

这篇关于如何关闭“匹配"在 VS Code 中突出显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆