How to get Visual Studio 2010 to highlight instances of a variable

后端 未结 10 1874
梦谈多话
梦谈多话 2021-02-03 21:28

I\'m new using vs2010 I\'ve read that when you click on a variable its suppose to highlight all the instances of that variable in that file and highlight red or show an error as

10条回答
  •  鱼传尺愫
    2021-02-03 22:17

    On the Tools menu, click Options.

    In the Options dialog box, expand Text Editor , and then complete one of the following tasks:

    • For Visual Basic, expand Basic, click VB Specific, and then select or clear Enable highlighting of references and keywords.
    • For C#, expand C#, click Advanced, and then select or clear Highlight references to symbol under cursor.

    From: msdn

提交回复
热议问题