All-In-One Visual Studio Extensibility Code Samples

 

Introduction

The All-In-One Visual Studio Extensibility (VSX) code samples demonstrate the typical programming topics about extending Visual Studio. These topics are either frequently asked in MSDN forums and Microsoft Support, or are requested by many developers via our code sample request function. We want to alleviate the frustration felt by developers when they are developing VSX.

 

 

Visual Studio 2008 Code Samples

Sample Description Download ReadMe
CppVSGetServiceInBackgroundThread This Visual Studio Extensibility code sample demonstrates how to get the VSPackage service from a background thread. Download ReadMe.txt
CSVSAddInCommandBarUI The code sample demostrates how to display Visual Studio add-in in toolbar or menubar. Download ReadMe.txt
CSVSAddInCommandEvents This Visual Studio add-in code sample demonstrates how to subscribe to the shell command executing and how to change the menu item's caption dynamically for a Visual Studio add-in. Download ReadMe.txt
CSVSAddInToolboxItem This Visual Studio add-in code sample demostrates how to customize Toolbox items in DTE automation model or by Toolbox service. Download ReadMe.txt
CSVSAutomationOutsideIDE This sample demonstrates how to automate Visual Studio from outside the IDE. Download ReadMe.txt
CSVSPackage This Visual Studio Extensibility sample demonstrate how to use the the Visual Studio Integration Package Wizard to create a simple VSPackage. Download ReadMe.txt
CSVSPackageAddReferenceTab This Visual Studio Extensibility code sample demostrate you how to add a custom .NET user control as a tab page into the add reference dialog within Visual Studio, and how to enable select button and handle item selection events. Download ReadMe.txt
CSVSPackageCloseOpenedDocument This Visual Studio Extensibility code sample demonstrates how to close the document (in Visual Studio) which is already open in another editor. Download ReadMe.txt
CSVSPackageInvokeCoreEditor The code sample demostrates operating on Visual Studio core editor, including initiating core editor, associating the core editor with a certain file type, etc. Download ReadMe.txt
CSVSPackageMonitorFileChange This Visual Studio Extensibility code sample demonstrates how to register arbitrary components to be notified when a file is modified outside of the Visual Studio Environment. Download ReadMe.txt
CSVSPackageOptionPageWithTypeConverter This Visual Studio Extensibility code sample demonstrates how to use TypeConverter in Option Page of Visual Studio. Download ReadMe.txt
CSVSPackageState This Visual Studio Extensibility code sample demostrates the state persistance for application options and show object states in properties window. Download ReadMe.txt
CSVSPackageStatusBar This Visual Studio Extensibility code sample demonstrates how to convey information about the current state of Visual Studio IDE using IDE's Status Bar. Download ReadMe.txt
CSVSPackageToolbars This sample demonstrates how to use the the Visual Studio Integration Package Wizard to create a simple VSPackage with a toolbar. Download ReadMe.txt
CSVSPackageToolbox This Visual Studio Extensibility code sample demonstrates how to use the the Visual Studio Integration Package Wizard to create a simple VSPackage and automatically load all the ToolboxItem items provided by its own assembly. Download ReadMe.txt
CSVSPackageWPFToolWindow This Visual Studio Extensibility code sample demostrates how to host a WPF control into Visual Studio ToolWindow. Download ReadMe.txt
CSVSService This Visual Studio Extensibility code sample demonstrates how to provide, register, consume service in VSPackage. Download ReadMe.txt
CSVSToolWindow This sample demonstrates how to use the the Visual Studio Integration Package Wizard to create a simple VSPackage with a tool window that has a Windows Media control on it. Download ReadMe.txt

 

Visual Studio 2010 Code Samples

Sample Description Download ReadMe
CSCustomCodeAnalysisRule The code sample demonstrates creating custom Visual Studio code analysis rule in VC# Download ReadMe.txt
VBCustomCodeAnalysisRule The code sample demonstrates creating custom Visual Studio code analysis rule in VB Download ReadMe.txt

 

Download all code samples: http://1code.codeplex.com/releases

 

Submit your request of VSX code samples (Guidance)