Open vsfeedback opened 13 hours ago
It's not clear whether the current behavior should be considered correct. Some features center the view on navigation, while many others use TryMoveCaretToAndEnsureVisible
which does not center the view. The current behavior for Document Outline has been in place since at least #65641.
I am curious, why did this issue get moved here? https://developercommunity.visualstudio.com/t/Text-Editor-does-not-Center-when-I-selec/10796950
It centers when the method is not visible on the screen so why not make it center always? That would make it consistent and spare the user from having to look for it somewhere on the screen.
Ideally the entire Method name would be Highlighted as well without having to turn ON Highlight references to symbol under cursor in Settings.
why did this issue get moved here?
The code for this lives in this repo.
so why not make it center always?
General navigation philosophy is to not do that to maintain spatial consistent when possible.
People navigate a lot to something already on screen, while still wanting to see the code they are currently on. Always moving something to the center flights against that.
There's no right/wrong approach here. Just trade-offs and heuristics that can better things for some users while making it worse for others.
People navigate a lot to something already on screen, while still wanting to see the code they are currently on. Always moving something to the center flights against that.
Below is an image of my current IDE Setup. The Document Outline Window is always open for me and Pinned because it's crucial for navigation. 95%+ of the time, when I select something in the Document Window it's not on the screen, hence it gets centered on the screen. The Odd time that this does not happen my Flow gets interrupted and I have to figure out what happened... why is it not centered? where is the method? Is it above? Is it below? This breaks my train of thought / flow.
It would also be nice if the entire method signature could be highlighted like this and the ability to modify the background color in settings. Document Window is the 3rd most important window for me in VS after Text Editor and Solution Explorer.
This issue has been moved from a ticket on Developer Community.
Please see the Screenshot below.
Original Comments
Feedback Bot on 11/21/2024, 08:00 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Feedback Bot on 11/26/2024, 00:06 PM:
Thank you for sharing your feedback! Our teams prioritize action on product issues with broad customer impact. See details at: https://docs.microsoft.com/en-us/visualstudio/ide/report-a-problem#faq. In case you need answers to common questions or need assisted support, be sure to use https://visualstudio.microsoft.com/vs/support/. We’ll keep you posted on any updates to this feedback.