【问题标题】:White squares around selected words所选单词周围的白色方块
【发布时间】:2019-11-12 03:16:57
【问题描述】:

当我将光标留在 vscode 中某个单词或选择它时,所有相似单词周围都会出现一个可怕的白框。 怎么关掉?

【问题讨论】:

    标签: search visual-studio-code highlight vscode-settings


    【解决方案1】:

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

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

    并添加以下行:

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

    然后保存文件,更改应立即生效。

    【讨论】:

    • 最后一个不允许我不搜索就看到相同的单词
    【解决方案2】:

    前往

    文件->首选项->设置

    选择

    文本编辑器

    向下滚动到

    事件突出显示

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

    【讨论】:

    • 好的,它有帮助,但我只选择了一个词。其他相同的词(自动选择)仍在白框中。
    猜你喜欢
    • 1970-01-01
    • 2020-09-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多