probably a quick one:
what is this grey waves left oft the map mode of scroll bars?
scroll bar http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-10-92-metablogapi/4265.image_5F00_12B0AD0A.png
2nd last screenshot from article here:
http://blogs.msdn.com/b/cdnstudents/archive/2014/01/21/visual-studio-tips-and-tricks-enhanced-scroll-bar.aspx
with some luck I found it is part of the Productivity Power Tools 2015
https://visualstudiogallery.msdn.microsoft.com/34ebc6a2-2777-421d-8914-e29c1dfa7f5d
it seems to show the scope of blocks/braces.
Scrollbar markers
The blocks are also marked on the Scrollbar with previews. As usual, you can turn this on/off through Tools Options > Productivity Power Tools > Other extensions > Show code structure in the margin.
(source: s-msft.com)
I saw it in a MVA video, and it was not the first time, they use tools or features they do not explain...
This is a new feature in Visual Studio 2013. You can preview the code by just hovering over the scroll bar & not actually scrolling. The width of the scroller could be adjusted (according to the 2nd link in your question - 2 last screenshot has Wide as the width).
How to set it?
Tools -> Options -> All languages -> Scroll Bars
All settings wrt to scroll bar are present here.
Related
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.
In the VSCode editor when you pull the scroll bar down to the bottom of the file, all you see is a blank page, since the text has scrolled up past the top of the text editor window. This makes scrolling to the bottom difficult because you can't just pull the scroll bar quickly all the way down but have to carefully position the cursor so you can still see your code.
Very similar to How to make Visual Studio editor stop scrolling past bottom of a file?, but comments have pointed out that question/answer is for Visual Studio. This answer is for VSCode on the macOS and Windows.
The correct answer is seen here: https://stackoverflow.com/a/40588828/1189470
There is a configuration option provided in VSCode for the functionality you specified. To enable it, go to File -> Preferences -> user settings
On the right side of the editor in settings.json paste the below line at the bottom (before closing bracket), save and close.
"editor.scrollBeyondLastLine": false
This will prevent the editor from scrolling beyond the last line.
This is now exposed as a simple checkbox labeled "Editor: Scroll Beyond Last Line" in File/Apple -> Preferences.
If just for readability you would like some space at the bottom of the file - a configurable amount - try this setting as of v1.43:
editor.padding.bottom in pixels
Editor> Padding: Bottom
Controls the amount of space between the bottom edge of the editor and
the last line.
and/or
editor.padding.top // but this isn't sticky in the sense that you can scroll right past the padding top and it is gone. It doesn't stay.
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.
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.
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.