Create an extension with a tool window
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
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.
Prerequisites
Starting in Visual Studio 2015, you do not install the Visual Studio SDK from the download center. It is included as an optional feature in Visual Studio setup. You can also install the VS SDK later on. For more information, see Install the Visual Studio SDK.
Create 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!.