Turn Off Automatic Highlighting of Matching Words in Visual Studio 2022

Anonymous
2023-12-21T20:11:23.01+00:00

I am trying to figure out how to turn off the Automatic Highlighting of Matching words or variables in the Visual Studio 2022 Text editors. For Example, if my cursor is on Sub or Function, all words in the current file with Sub or Function are automatically highlighted. I find this very distracting. How do I turn this off? It doesn't matter what type of file I have open. aspx, aspx.vb, config files. It is the same in every one.

Developer technologies | .NET | Other
Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 122.6K Reputation points
    2023-12-21T20:40:20.89+00:00

    See these options in Options dialog from TOOLS menu:

    • Text Editor → General → “Show selection matched”
    • Text Editor → Visual Basic → Advanced → “Highlight related keywords under cursor”

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.