Goto definition result almost always placed at the very bottom of window (or just below view) unless file is already opened
For some reason, when I use Goto Definition, the result will always be placed at the very bottom of the window (or occasionally just below view) if the file was not already opened. (which can be seen here:
However, If the file in which the definition resides is already opened and the definition is already within the view, it just switches to it and will remain where it was.
Only If the file is already opened and the code is off-screen (either scrolled up or down) will it actually center it as expected, which can be seen here:
I am not sure what is determining where/how the page should be scrolled when going to the definition. Is this something that needs to be adjusted somewhere, if it even can be, or is this a bug?
Please sign in to leave a comment.
Hello,
Thank you for contacting Rider support.
We have this bug registered on our tracker: RIDER-119365 Go to Declaration action often doesn't center the search result in the editor and hope to fix it in the upcoming releases. We would appreciate it if you could upvote it to demonstrate your interest.
Should you have any other questions or difficulties, please let me know.
Have a nice day!