How to disable References for JavaScript files from Visual Studio 2022 IDE?

AG 521 Reputation points
2023-09-11T07:11:21.0266667+00:00

With Visual Studio 2022 17.7.3 inside a JavaScript file, as long as I scroll the code References is keep showing and moving my code lines. as this option is very annoying I would like to disable it, how to please?

references

Developer technologies Visual Studio Other
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-09-11T09:37:34.33+00:00

    Hi @AG, 

    Welcome to Microsoft Q&A! 

    Please go to Tools menu > Options > Text Editor > All Languages > CodeLens > uncheck “Show JavaScript/TypeScript References” > OK.

    User's image

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     


0 additional answers

Sort by: Most helpful

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.