Introduction
This is the official home for Visual Studio Extensibility online resources on Code Gallery. Here, you will find samples, deep dive documentation, links to shared source projects and other resources to help you extend Visual Studio. This page is maintained by the VSX team at Microsoft. You should already have downloaded and installed the Visual Studio SDK before using many of the resources on this page. For the Visual Studio Extensibility Developer Center on MSDN and the VS SDK download, please visit http://msdn.com/vsx/. All Visual Studio Extensibility related resources on Code Gallery are tagged with the “vsx” tag. You may subscribe to the VSX RSS feed to be notified of new VSX resources on Code Gallery.
Visual Studio 2010 Beta 2 Samples
| Name | Description | Language |
| Caret Fish Eye | This is a sample extension to the Visual Studio 2010 Editor that visually shrinks lines that are farther away from the caret. | C# |
| Completion Tooltip Customization | This is a sample extension for the Visual Studio 2010 editor that replaces the completion tooltip UI. | C# |
| DemoDashboard | Extension that leverages the new managed WPF-based editor by offering different WPF-based gadgets and uses the Twitter service to allow for real-time interactions between a speaker and the audience. | C#, VB |
| Diff Classifier | This is a sample Visual Studio 2010 Classifier that provides syntax highlighting for standard diff/patch files. | C# |
| Highlight Word | This is a sample extension to the Visual Studio 2010 Editor that uses tagging and adornments to highlight all occurrences of the word currently under the caret. | C# |
| Hyperlink Extension | This is a sample Visual Studio 2010 extension that provides syntax-highlighting for hyperlinks as well as the ability to ctrl-click on the link. | C# |
| ImageInsertion | Images and text nicely playing side-by-side in the new editor | C#, VB |
| IntellisensePresenter | Create your own UI for displaying the IntelliSense | C#, VB |
| Ook Language Integration | This is the example used during the Visual Studio Ecosystem Summit Presentation "Getting Linguistic: Integrating a Language into Visual Studio" by Chris Granger | C# |
| Reference.Services | This sample demonstrates how to create and consume services from a VSPackage. | C#, VB, C++ |
| Reference.Package | This sample shows how to create a Visual Studio package and how to add an entry into the Help About dialog. | C#, VB, C++ |
| RegExEditor | Write and Test your regular expressions right within the editor | C#, VB |
| Todo Classification | This sample provides a general purpose TodoTagger as well as classification and a glyph factory. | C# |
| ToDoGlyphFactory | This sample adds a glyph in the glyph margin on every line that contains a comment with the word “todo” in it. The sample demonstrates how to create a custom glyph factory that uses a tagger. | C# |
| Typing Speed Meter | This is a sample editor extension for Visual Studio 2010 that uses and IVsTextViewCreationListener and an adornment to create a typing speed meter. | C# |
| Options Page | This sample demonstrates how to add custom options pages into the standard Visual Studio Options dialog. | C#, VB |
| RDT Event Explorer | This sample demonstrates how to create an explorer that logs Running Document Table (RDT) events. | C#, VB |
| Combo Box | This sample demonstrates how to create combo boxes on Visual Studio’s toolbars. | C# |
| Menu and Commands | This sample demonstrates how to create menu and command items and visualize them inside Visual Studio’s menus and toolbars. | C#, VB |
| Editor with Toolbox | This sample demonstrates how to create a package that provides an Editor type extended with Toolbox support. | C#, VB |
| Winforms Control Installer | This sample demonstrates how to create a Visual Studio package (VSPackage) that loads custom Winforms controls into the Toolbox. | C# |
| Tool Windows | This sample demonstrates how to create a package that provides tool windows which host Windows Forms controls and WPF controls. | C#, VB, C++ |
| Code Sweep | This sample allows the user to specify a set of terms to search for by specifying a set of XML files containing the term definitions. | C#, VB |
| WCF Service Consumption tools | Includes three samples in both Visual Basic and C#: AsrDiscoverButton – demonstrates extending the Discover button in the Add Service Reference dialog; EndpointPicker-- Demonstrates WCF extensibility for customizing the generated code through WSDL importer extensions; ServiceReferenceExplorer --demonstrates enumerating WCF References in a tool window. | C#, VB |
| Spell Checker | This sample editor extension uses smart tags and squiggles to display spelling errors in your comments inside of VS 2010. | C# |
Visual Studio 2010 Walkthroughs
Editor Extension Hands On Lab - This lab takes you through the end to end scenario of creating and editor extension, by building an extension that displays walkthrough content from an XML file directly in the editor as green boxes.
Visual Studio 2010 Beta 2 UI Guidelines
Visual Studio 2010 UI Guidelines - Guidelines for creating UI for Visual Studio extensions.
Visual Studio 2008 Code Samples
IDE Samples
| Name | Description | Language |
| AllowParams | Illustrates how to use the ParametersDescription property to allow for passing arguments with a command, through the Command Window. | C# |
| MyErrorsPackage | Demonstrates how to use an ErrorListProvider to participate in Error List tool window. | C# |
| TBEdit | Demonstrates how to implement a custom editor that hosts multiple logical views on a TabControl. | C# |
| Match Options Commands Addin | Simple addin that adds toggle buttons for various Find options. | C# |
| VSPackage in F# | Demonstrates how to write a VSPackage in F#. | C# |
Domain-specific Language Samples
All DSL Samples have been moved to the DSL Samples site
Sample Deep Dive Documentation
Each sample deep dive document contains in-depth information that explains and walks the reader through a particular code sample. The samples themselves are found in either the Visual Studio SDK or on CodePlex.
| Name | Sample Code Location | Language |
| Combobox Reference Deep Dive | Visual Studio SDK | VB, C# |
| Language Service in a Dialog Sample Deep Dive | Visual Studio SDK | VB, C# |
| Multi-File Editor Sample Deep Dive | Visual Studio SDK | VB, C# |
| Document Designer Editor Sample Deep Dive | Visual Studio SDK | VB, C# |
| Running Document Table Event Explorer Sample Deep Dive | Visual Studio SDK | VB, C# |
| Help Integration Sample Deep Dive | Visual Studio SDK | VB, C# |
| ManagedMyC Sample Deep Dive | Visual Studio SDK | C# |
| Debugger Expression Evaluator Sample Deep Dive | Visual Studio SDK | C# |
| Package Reference Sample Deep Dive | Visual Studio SDK | VB, C# |
| Menus and Commands Reference Sample Deep Dive | Visual Studio SDK | VB, C# |
| Services Reference Sample Deep Dive | Visual Studio SDK | VB, C# |
| Tool Window Reference Sample Deep Dive | Visual Studio SDK | VB, C# |
| Options Page Sample Deep Dive | Visual Studio SDK | VB, C# |
| Single File Generator Sample Deep Dive | Visual Studio SDK | C# |
| Editor with Toolbox Sample Deep Dive | Visual Studio SDK | VB, C# |
| Single View Editor Sample Deep Dive | Visual Studio SDK | VB, C# |
| Regular Expression Language Service Sample Deep Dive | Visual Studio SDK | VB, C# |
| Visual Studio IronPython Sample Deep Dive | Visual Studio SDK, CodePlex | C# |
| Storyboard Designer Sample Deep Dive | CodePlex | C# |
Other Online Resources
- Koders - online code search engine that has indexed all the sample code in Visual Studio 2005 SDK 4.0. Select MSVSSDK license under the "All licenses" dropdown list to search only VS SDK sample code.
- Visual Studio Gallery - the one-stop location for you to download or publish Visual Studio extensions. Hundreds of extensions are already available today.
- Visual Studio Team Blog - get regular updates directly from the team who works on the Visual Studio extensibility platform, SDK, Editor, Project, MSBuild, and many other Visual Studio Platform pieces.
|