Search code examples
visual-studio-code

VS Code will always highlight matches of word when cursor is on top of that word


My VS Code editor will highlight all matches of a word when I just have the cursor on top of that word.

How do I turn this off? Is this a bug?

screenshot of issue


Solution

  • Just set

      "editor.occurrencesHighlight": "off"
    

    in your settings if you don't want those. Selecting the word will still highlight all occurrences but not just a cursor within the word.

    Other options for the setting are singleFile and multiFile.