How can I add a button to a window for a Visual Studio Extension?

Adam Chlebek

I am trying to create a Visual Studio Extension and I need to add a button to a specific window. Where am I able to find the "source code" behind this screen in order to add it?

I have tried parsing through different examples and looking through documentation.

     <Button guid="guidSWO" 
     id="EnableDisableguidSWO" priority="0x0100" type="Button">
        <Parent guid="guidSWO" id="MyMenuGroup" />
        <Icon guid="guidImages" id="bmpPic1" />
        <Strings>
          <ButtonText>Enable/Disable SWO</ButtonText>
        </Strings>
      </Button>

This snip of code displays the button in the menu, but I want to display the button in the Quick Watch Menu

Lance Li-MSFT

Good idea but I'm afraid this behavior is not supported for now.

Related documents about extending ToolWindow topic:

Extend and customize tool windows

Extend the Output window

Extend the Properties, Task List, Output, and Options windows

To display the button in the menu, you can easily do this by creating a custom command template. And now what you want to is to extend the ToolWindow, you can check the documents above and you'll find you can extend the Output Window, Properties Window and so on but other windows like Quick Watch Window and Diagnostic Tools Window are not supported.

We can't extend the Quick Watch Window by adding a new button into it,as far as I know it is not supported. The Quick Watch Window is different from the Solution Explorer or Output Window. I would think the Output window use TableControl or TableView or ListView or what as part of its UI Window, so it's easy to extend it since the VS SDK provides some related API like IVsOutputWindow. But for Quick Watch window, there's no such API in VS SDK to extend its UI.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to add an icon for tool window in visual studio extension

How can I add a Nuget package to a project in my Visual Studio extension?

Visual studio code extension: How can I add error markers to files in the explorer?

How can I view Threads window in Visual studio?

Visual Studio Code Extension Development: How can I display code inside my extension view?

How can I add C# 6.0 to Visual Studio 2013?

How can I add a new task list item in visual studio?

How can I add a reference to PresentationCore in Visual Studio 2019?

How can I "Add Next Occurrence" in Visual Studio for Mac?

How can I add files programmatically to a visual studio template?

How can I add and use image in Visual Studio 2017?

How can I add jQuery DateTimePicker to my project in visual studio

How can I add a pylint config file for Visual Studio 2015?

How to add a button to the Main Window Frame Control pane in visual studio 2013?

How can I create an extension for Visual Studio that can interface with TFS directly?

How do I add a button click event to my own button in Visual Studio C#

How to modify name in Properties Window Object List for Visual Studio extension

Visual Studio Extension Development: How reference pending changes window

Can I hook into the debug button in visual studio to add custom build functionality?

How can I recognize an ASP.NET Core project in a Visual Studio extension

How can I get WebView2 to work in my Visual Studio Extension

Can I install "JSON Viewer" extension for Visual Studio 2019?

Can I debug ActiveDirectory with Visual Studio Code PowerShell extension?

How can i add an extension to Powershell?

How can I use, in Visual Studio 2017, the "C# Interactive" window to query a source in my "Data Connections"

How can I stop IISExpress from dumping every detail of every request into the Visual Studio Output window?

How can I hide or show a custom margin on a visual studio editor window

How can I match Visual Studio's theme when creating a VSIX tool window?

How can I bring back Web Essentials CSS Output Window in Visual Studio