Fix scrollbox length on the vertical scrollbar [Visual Studio 2019] - visual-studio

Using Visual Studio 2019 Professional (and if relevant, editing C#). While using the IDE, the Scrollbox on the vertical scrollbar keeps changing size depending on where you are in the document. It might be smaller at the bottom and then get bigger as you scroll upwards or vice versa. This is disconcerting and makes navigation harder.
In the image below, Options > Environment > Fonts and Colors > Overview background is set to Maroon to better show the Scrollbox in case there is ambiguity. The Scrollbox is the bit between the orange lines which you can grab to scroll up and down.
In Notepad++, the Scrollbox size depends on the height of the application and the number of lines in the text file being edited. The size (correctly) changes size when you add or remove lines, but it does not change size dynamically depending on where you are in the document. This is the functionality I'm looking for.
A related Stackoverflow question suggested disabling Edit > Advanced > Word Wrap. This does not resolve the issue.
How do you turn off "dynamic Scrollbox sizing while scrolling"?

When the IDE is in Map mode, it does not appear to be possible to fix the Scrollbox height.
To resolve this issue, go to Options > Text Editor > All Languages > Scroll Bars > Behaviour, and select Use bar mode for vertical scroll bar.

Related

Visual Studio 2020 how to stop filenames from being shortened in the tab

In Visual Studio (2020 for me), the filename of open files are written in the tabs at the top of the screen. If the filename is too long, it will be automatically shortened, i.e. instead of ReallyLongFilename.cs it will say ReallyL...lename.cs.
I want the entire filename to be displayed. I realize that I can hover my mouse on the tab to see the entire path, and I realize that I can select the dropdown on the top right to see all open files. That requires mouse and eye movement, when I just want eye movement.
Is there a setting for this?
filenames_have_been_shortened
Not really, but you can mitigate the problem by changing the tab minimum/maximum width via Tools > Options > Environment > Tabs and Windows > Minimum Tab Width and Maximum Tab Width. The default minimum is 60 and the default maximum is 215. Changing the Maximum Tab Width will allow you to see more of the filename.

Why does VS2013 reset my vertically split XAML windows?

Whenever I look at a XAML file, I always split them vertically (design surface on the left, XAML on the right), as I find it much easier to work this way.
Usually, when I close and reopen VS, the setting is remembered, however fairly often VS just forgets it, and opens them all split horizontally.
Anyone any idea why it does this?
You can set the default to split vertically from
Tools > Options > XAML Designer:
Default document view : split
Split Orientation: vertical

The colors of Visual Studio [duplicate]

I have only recently paid any attention to the appearance of little green and blue rectangles on my vertical scroll bar in code editing windows in VS2010. Can anyone tell me what these are?
I'm running with the Productivity Power Tools extension and ReSharper 6.
I have not found a color legend for the bits, but here is what we have found so far;
Light Blue = Bookmarks
Blue = Error / Warning
Orange = Find Results
Red = Breakpoint
Light Purple = Other instances of the selected variable
Dark Blue = Current cursor location
Yellow = Not saved changes
Green = Saved Changes
Dark Green = Spelling error (in comment or string literal)
From the productivity power tools extension page:
Enhanced Scrollbar
We’ve been looking into ways that we can
improve the experience of navigating through code files. Our solution
is the source map which has three modes that will allow you to more
easily see the interesting artifacts in your files (edits,
breakpoints, bookmarks, errors, warnings etc) and make it easy for you
to navigate between them. The default mode is the “scroll bar only
mode” which overlays icons onto the standard scrollbar to allow for
viewing of these artifacts. In the source map mode, we’ve replaced the
default scroll bar allow you to click on any item on the scrollbar to
navigate directly to it. This source map mode also provides a preview
of the part of the document as you hover. Finally, we have the
detailed source map mode, which allows you to get a zoom out view of
your entire file. You can switch between any of these modes by
right-clicking on the scroll bar or going to Tools
Options>Productivity Power Tools>Source Map where we have a host of
other options that you can configure.
For what it is worth if you hover on the word with a spelling error a box will appear below. You then mouse over the box and a drop arrow will appear from there you can select the correct spelling or add a word to the dictionary.

What are the little coloured bits on my vertical scroll bar in Visual Studio 2010?

I have only recently paid any attention to the appearance of little green and blue rectangles on my vertical scroll bar in code editing windows in VS2010. Can anyone tell me what these are?
I'm running with the Productivity Power Tools extension and ReSharper 6.
I have not found a color legend for the bits, but here is what we have found so far;
Light Blue = Bookmarks
Blue = Error / Warning
Orange = Find Results
Red = Breakpoint
Light Purple = Other instances of the selected variable
Dark Blue = Current cursor location
Yellow = Not saved changes
Green = Saved Changes
Dark Green = Spelling error (in comment or string literal)
From the productivity power tools extension page:
Enhanced Scrollbar
We’ve been looking into ways that we can
improve the experience of navigating through code files. Our solution
is the source map which has three modes that will allow you to more
easily see the interesting artifacts in your files (edits,
breakpoints, bookmarks, errors, warnings etc) and make it easy for you
to navigate between them. The default mode is the “scroll bar only
mode” which overlays icons onto the standard scrollbar to allow for
viewing of these artifacts. In the source map mode, we’ve replaced the
default scroll bar allow you to click on any item on the scrollbar to
navigate directly to it. This source map mode also provides a preview
of the part of the document as you hover. Finally, we have the
detailed source map mode, which allows you to get a zoom out view of
your entire file. You can switch between any of these modes by
right-clicking on the scroll bar or going to Tools
Options>Productivity Power Tools>Source Map where we have a host of
other options that you can configure.
For what it is worth if you hover on the word with a spelling error a box will appear below. You then mouse over the box and a drop arrow will appear from there you can select the correct spelling or add a word to the dictionary.

More screen space in MSVS?

I am using visual studios 2008. My laptop has the max screen res of 1366x768.
What can i do to get more reading space? i was thinking of making the font smaller but it would be more helpful if i can make everything smaller (toolbar icons, text, etc)
The only improvement i done so far was remove a bunch of things under the toolbar so i have only one line. Actually for this project i remove the standard bar so i have have the solution and text directly under the menu with no toolbar. What else can i do to maximize reading space.
Tools > Options > Environment > General > Uncheck "Show status bar"
Tools > Options > Text Editor > All Languages > Uncheck "Navigation bar"
Install the "Hide Main Menu" extension available here.
Enable Auto-hide the taskbar in your Windows Taskbar properties.
That should get you at least 5-7 more lines.
Dual screens. The more pixels the better. I like 1920x1280 extended to across a matched monitor with vertically split tabs.
Probably not the answer you are looking for, but really, it HELPS A LOT.
Ok ok:
Try Lucida Console as a font - it's readable at 8pt - and fixed width!
Hit Alt+Shift+Enter to get into Full Screen mode.
Float all your "helper" windows and use Ctrl+Tab to get to them. (Click using mouse)
Pin your Windows Task Bar to the left or right of your screen to give more vertical reading space.
What I do is unpin all the various tool windows and views. Unpin the Solution Explorer, Properties viewer, Output etc. and the Toolbar. This leaves you with just the coding window and small bars around that allow you to hover over the edges of the window and see everything you just unpinned.
set the Solution explorer on the right to Auto-Hide, close the error window when possible (as in when you're not fixing errors), and try and drop the number of toolbars vertically to 1. You can also change the size of the text down by going to Tools > Options > Environment > Fonts and colors but i wouldn't shrink the text unless you have good vision. I recommend Consolas 12 Point for your code; it's a bit big but very nice looking!
I got rid of the toolbars altogether and made things like the Solution Explorer autohide. I came to the realisation that the only toolbar button I ever used was a custom tool one I'd put there (I use the menu for that now). I'm running at 1920x1200 so real estate wasnt an issue - I just wanted less visual distractions. Just me and the code.

Resources