title | description | ms.date | ms.topic | author | ms.author | manager | ms.subservice |
---|---|---|---|---|---|---|---|
Creating an Extension with a Tool Window |
Use the VSIX project template and the Custom Tool Window item template to create an extension with a tool window in Visual Studio. |
3/16/2019 |
how-to |
maiak |
maiak |
mijacobs |
extensibility-integration |
In this procedure, you learn how to use the VSIX project template and the Custom Tool Window item template to create an extension with a tool window.
-
Create a VSIX project named FirstWindow. You can find the VSIX project template in the New Project dialog by searching for "vsix".
-
When the project opens, add a tool window item template named MyWindow. In the Solution Explorer, right-click the project node and select Add > New Item. In the Add New Item dialog, go to Visual C# > Extensibility and select Custom Tool Window. In the Name field at the bottom of the window, change the tool window file name to MyWindow.cs.
-
Build the project and start debugging.
The experimental instance of Visual Studio appears. For more information about the experimental instance, see The experimental instance.
-
In the experimental instance, go to View > Other Windows.
You should see a menu item for MyWindow. Click it.
You should see a tool window with the title MyWindow and a button saying Click Me!.