Visual studio GoTo definition Jumps to beginning of file if it isnt opened

Rickard Nilsson 0 Reputation points
2023-09-01T07:59:41.65+00:00

Whenever i press F12 or Ctrl+click or rightclick on a method/property/whatever and want to do a GoToDefinition, if the file containing the method/property/whatever isn't already opened in visual studio it will only open the file and fail to scroll to the wanted method/property/whatever. However, if the file is already opened it will succeed with the operation.

I have both Visual studio 2019 and 2022 installed and I have this behaviour on both.

Resharper have been installed on both previously.

/Rickard

Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-09-04T08:00:30.54+00:00

    Hi @Rickard Nilsson

    Welcome to Microsoft Q&A! 

    What is your project? 

    Please update your Visual Studio to the latest version and try again. 

    If it persists, please share us some code or steps to reproduce it. 

    Thanks for your understanding! 

    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 comments No comments

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.