Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010: Adding commands to toolbar

I've been playing with the RC of Visual Studio 2010, trying to set it up similarly to my VS 2008 installation. In VS 2008, I have added a couple of commands to the standard toolbar; Edit > Outlining > Toggle All, and Edit > Outlining > Collapse to Definitions. These commands don't have native images, so I created a couple and added them to the toolbar buttons using the VS 2008 Customize dialog, like this: I right-click the toolbar to bring up its context menu, then I select Customize to open the Customize dialog. At that point, I can right click the button to which I want to add an icon. I get another context menu that lets me paste a button image or set the button image to a standard image.

I tried doing the same thing in VS 2010 RC, and it works the same, up to the point where the Customize dialog opens. But at that point, I can't right click my added button to set its image. So, that brings me to my question: Is there a way that I can assign an image to a command that I add to a VS 2010 toolbar, assuming the command doesn't have a native image? Thanks.

like image 349
David Veeneman Avatar asked Feb 11 '10 04:02

David Veeneman


1 Answers

Command Image Changing Extension

http://blogs.msdn.com/b/visualstudio/archive/2010/06/17/command-image-changing-extension.aspx

like image 111
MicTech Avatar answered Sep 24 '22 13:09

MicTech