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
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 126.1K 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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.