Cannot debug Boost multi Array in Visual Studio 2010 - visual-studio-2010

Suppose I were to define a std::vector, and push some elements into it. During the course of debugging, I can inspect all the elements inside my vector from the watch window. This way, I can find out if some of the elements of the std::vector have been assigned an incorrect value.
However, when using a Boost multiarray, there seems to be no means available to inspect the elements of the multiarray from the debug watch window. The watch window shows me some weird fields like base, allocator, etc, but there is no data field that displays the values of elements of the container.
So, my question is, is there a way to inspect the elements of a boost multiarray from Visual Studio 2010 debugger watch window?

Related

How to view overload signatures in Visual Studio 2015's tooltip

Visual Studio 2015 (and older versions) have a tooltip when you hover over various identifiers that will tell you information like the type and method signatures. A screenshot of this functionality is shown below:
When there are overloads, as there is below, I'd like some way to be able to view these overloads. I find this is a somewhat common case as I'd like to identify if an overload might have something closer to what I actually need.
When typing the method for the first time, such is possible and the tooltip has arrows that make it clear that you can do this (the up/down arrow keys switch between overloads here):
I also note that this window has more details, which would be useful to have when hovering. This dialogue isn't so easy to open, however, once the code has already been written (I seem to have to type the method call from scratch).
Is there any way to view the overloads when hovering alone? Or perhaps more ideally, to be able to see the second window when hovering over the identifier?
It doesn't have to be a native feature. A compatible extension would work as well. I'm thinking of C# in particular, but it doesn't have to be just that.
Place the insertion point between the () and press Ctrl+Shift+Space. Then use the arrow keys to navigate.

A way to group controls in Visual Studio

In Adobe Illustrator and other drawing programs I can group objects so I can move them together, resize them together, or treat them as a single object when I'm doing alignments. Is there a way to do this in Visual Studio 2012? I've seen GroupBox, but that's not what I want because that's a programming object instead of a behavior of the IDE. And how can I make it such that I can, say, keep two controls fixed in position but still align or change the spacing of third a third with respect to them?
In Windows Forms you group controls by dropping them inside the same container. Then moving the container, or disabling it, or hiding it, anything really, also affects every child object too.
Rather than a GroupBox though, I'd recommend a Panel. It's a light weight object who's sole purpose is to just host controls.

Intellisense QuickInfo disappears after 10 seconds

Does anyone know if there is a way to keep the Intellisense QuickInfo from disappearing after 10 seconds? After I type a period to get the member list, I usually like to read the QuickInfo for the highlighted member. However, it automatically disappears after 10 seconds and I usually can't finish reading the content in that short time.
BTW, when I refer to "QuickInfo," I'm referring to the box that shows up to the right of the member list which contains the complete member signature and a description. See http://msdn.microsoft.com/en-us/library/hcw1s69b.aspx.
There is probably no proper solution to your problem, because the tooltips are controlled by the system not the visual studio process. But you can print the screen to capture the tooltip and then paste it to paint like in this answer.
How to increase the time tooltips remain visible in Visual Studio

Override Visual Studio 2010 UI behavior

I would like to create an extension for visual studio in which some UI behaviors are overridden. I have found many examples of adding UI components to VS, but none where they change them. A very good example of what I want to do is make it so that each tab takes up exactly 50 pixels in width (at the top of the editor window group). Is this possible? If so, what would be a good resource for me?
For your specific example, the Document Tab Well extension inside the Productivity Power Tools pack lets you set minimum and maximum widths for the editor tabs, so you could force it to 50 pixels if you want.
In general, there is no uniform way you can override or replace UI components in Visual Studio. A few components were designed to be easily replaced, while some components cannot be replaced, but many aren't replacable. The general problem with replacing components is it fails the "what if two extensions want to do it test", because it's not clear which replacement wins. Thus most extension points are add-only.
My advice: if you want to replace a specific component, ask a separate question on Stack Overflow and hopefully somebody can chime in on how to customize that particular component.

Adornement layer in Visual Studio 2010 editor randomly moves by scrolling

I am trying decorate code lines with various metrics collected during an execution of a program. In order to do that I use VS extensibility and adornments layer. However it seems to be somewhat unstable and moves relative to the top of the document when the editor is scrolled and thus spoiling the alignment of code and the adornment. Also it is not always initialized in the top of the editor.
So how to anchor theadornment layer added to the code editor in Visual Studio 2010? I add a canvas into it by the folling way:
_adornmentLayer = view.GetAdornmentLayer("CodeAdornment");
_adornmentLayer.RemoveAllAdornments();
Canvas.SetTop(myOwnCanvas, 0);
adornmentLayer.AddAdornment(AdornmentPositioningBehavior.OwnerControlled, null, null, myOwnCanvas, null);
I start to have a feeling that it is a bug in the editor layouting.
You might want to make a viewport adornment that will always be on the top of the editor. Otherwise, you might want to use AdornmentPositioningBehavior.TextRelative and give a span for the first line in the document.

Resources