所选单词周围的白色方块

White squares around selected words

当我将光标留在 vscode 某个词或 select 时,所有相似词周围都会出现一个可怕的白框。 如何关闭它?

有两种高亮方式,全词高亮和选择高亮。

要禁用它们,请打开您的 settings.json (Ctrl+Shift + P > 首选项:打开设置 (JSON))

并添加以下行:

"editor.occurrencesHighlight": false,
"editor.selectionHighlight": false

然后保存文件,更改会立即应用。

转到

File->Preferences->Settings

Select

Text Editor

向下滚动到

Occurrences Highlight

取消选中 Controls whether the editor should highlight semantic symbol occurrences.