visual-studioide

Document Window selection behavior


I discovered the Document window which allows me to quickly jump to Methods in my C# files. However, I noticed one scenario where clicking a method in the Document Window does nothing on the screen except change the current Line Number. This occurs if the method signature is already on the screen (text editor). When this happens I have to manually find the method on the screen. At a minimum I would like to make the Current Line # more prominent. How can I make the Current Line # in the Left Gutter more prominent. Event better, how can I make the Document Window Highlight the Method Signature and center on it everytime?

Thank you

enter image description here


Solution

  • I noticed one scenario where clicking a method in the Document Window does nothing on the screen except change the current Line Number.

    For this issue, glad to hear that the Document Window behaves well after resetting visual studio settings. Looks like some third-party extensions you installed/your customized settings and Document Window conflict.

    The Question now is what is the setting that is causing Document Window to misbehave?

    I suggest you compare the two files: your original settings file and Visual Studio default settings file. In Solution Explorer, select two files (use Ctrl-click to select), you can right-click and choose Compare Selected to open the diff view with just those two files.

    Note: it may be time consuming.

    Docs Referred:

    https://learn.microsoft.com/en-us/visualstudio/ide/compare-with?view=vs-2022