Search Unity

Resolved VS2017 to VS2019, no more generated gray reference notes above functions

Discussion in 'Code Editors & IDEs' started by Ne0mega, Nov 7, 2022.

  1. Ne0mega

    Ne0mega

    Joined:
    Feb 18, 2018
    Posts:
    755
    Above functions, in Visual Studio 2017, there used to be a "note" in gray, that said how many references there were to the function, and if you clicked on it, it would go straight to the same window as pressing (Ctrl+K, R),(find all references).

    I upgraded to vs 2019, and now this little helpful note I had come to love above every function is gone. I did not install any other third party IDEs. How do I turn those "notes" back on.

    Found a screenshot:
    https://forum.unity.com/threads/update-on-the-visual-studio-code-package.1302621/#post-8245851

    How can I turn these back on?
     
    Last edited: Nov 7, 2022
  2. Ne0mega

    Ne0mega

    Joined:
    Feb 18, 2018
    Posts:
    755
    Found it. Is called "CodeLens", and it off by default.

    To enable it, go to Tools - Options - Text Editor - All Languages - CodeLens and check "enable CodeLens", click OK,

    And a little gray note above each function / method will tell you how many references there are to that function/method. It is so convenient