Turn of references count on visual studio C# editor


  • Hi There,

    How can we turn of reference counts  on VS  C# editor using keyboard short cuts. I know we can do it form Options---> All Languages---> CodeLens. 

    But  I am looking for keyboard short, how can we modify if there is any keyboard short with my own keys to make it to work.

    Tuesday, April 18, 2017 11:01 PM

All replies

  • Hi friend,

    Thanks for your post.

    So far there is still no shortcut for turn on/off codeLens in Visual Studio.

    But I think this functionality is reasonable, and you could submit a user voice and I thing the develop engineer of VS will evaluate it seriously and might add it in the future version.

    In VS2017:

    Anyway,thanks for your good idea.

    There is a workaround which needs some third-party add-in to make it, I found this thread and the answer from Sergey show us the way.

    Best regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Wednesday, April 19, 2017 2:56 AM