[英]How to turn off "matching" highlighting in VS Code?
我不希望 Visual Studio Code 突出顯示匹配的括號、同一變量的所有出現等。我覺得它很分散注意力。 但是,我找不到禁用此功能的方法。
我似乎能夠更改的唯一突出顯示選項是“editor.selectionHighlight”和“editor.renderLineHighlight”,兩者都不起作用。
是否可以禁用“匹配突出顯示”? 或者編輯我的主題,使高亮顏色和高亮邊框與背景顏色相同?
有不同類型的突出顯示:
"editor.occurrencesHighlight": false
"editor.selectionHighlight": false
"editor.matchBrackets": false
還有第二種方法 - 讓它們不那么突兀(或完全透明):
"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",
}
試試這個"editor.matchBrackets": false
in your Preferences - User/Workspace setting
嘗試轉到首選項-> 用戶設置
在settings.json
右側添加:
"editor.selectionHighlight": false
“事件突出顯示”是您正在尋找的設置。
可以從 VSCode 設置中完成來自@Alex 的回答的相同成就。
轉到Preferences -> Settings並搜索Highlight 。
會出現很多選項,但有用的選項將在“文本編輯器”部分下。 此外,您可以決定是全局更改(通過用戶設置)還是僅針對該窗口(工作區設置)進行更改。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.