Udostępnij za pośrednictwem


VS 2013 SDK Samples released

It took a bit longer than we’d have liked, but the VS team has finally gotten around to porting and posting the original VS SDK samples from VS 2010, over to VS 2013. Below is a listing of the samples and where they can be downloaded from.

Build Progress Bar – VS 2013

A Visual Studio Package which provides a new tool window called "Build Progress" which displays a WPF ProgressBar indicating percentage completion of the current solution build.

Caret Fish Eye – VS 2013

This is a sample extension for Visual Studio 2013 that visually scales lines to be smaller the farther away from the caret's current position they are. It accomplishes this using the line transformation API.

Code Sweep – VS 2013

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. The user-configurable settings are stored in the project file. The scan can be invoked either on command or as an integrated part of the build process. When the scan is performed, a custom task provider causes hits, if any, to be shown in the task list.

Command Target RGB – VS 2013

A Visual Studio Package which provides a multi-instance tool window called "Red Green Blue" which hosts a toolbar with three buttons that will change the tool window's background color and move the toolbar in the frame.

Completion Tooltip Customization – VS 2013

This is a sample extension for the Visual Studio 2013 editor that replaces the completion tooltip UI.

WPF Designer over SML – VS 2013

Demonstrates how to create an extension with a WPF-based Visual Designer for editing XML files with a specific schema (XSD) in coordination with the Visual Studio XML Editor.

Diff Classifier – VS 2013

This is a sample Visual Studio 2013 classifier for diff/patch files. It provides formatting for the various line types found in diff files using the classification API.

Highlight Word – VS 2013

This is a Visual Studio 2013 sample extension that uses tagging and adornments to highlight all the occurences of the word currently under the caret.

Inline XPS Viewer – VS 2013

This is a sample adornment extension showing how to host a document viewer in Editor code window. In the doc viewer you can zoom in/out, view whole/2 pages, print and find text in the doc.

Intra-text adornment – VS 2013

This is a sample extension for the Visual Studio 2013 editor that replaces a hexadecimal color with a color swatch using intra-text adornments.

Ook Language sample – VS 2013

This is the example used during the Visual Studio Ecosystem Summit Presentation "Getting Linguistic: Integrating a Language into Visual Studio" by Chris Granger. It implements the following language features for the esoteric language "Ook!":

Reference Package – VS 2013

This sample shows how to create a Visual Studio package and how to add an entry into the Help About dialog.

Reference Service – VS 2013

This sample shows how to be a Visual Studio service provider and how to consume Visual Studio services.

Single File Generator – VS 2013

This sample demonstrates how to build a single file generator.

Source Control Provider – VS 2013

This sample demonstrates how to create a source code control provider.

Todo Classification – VS 2013

This is the sample code written during the Visual Studio Ecosystem Summit presentation "I Want Coloring: A scenario based look at the new editor". It provides a general purpose TodoTagger as well as classification and a glyph factory.

Todo Glyph Factory – VS 2013

This sample adds a glyph in the glyph margin on all lines that have comments with the word "todo" in them. It demonstrates how to create a custom glyph factory that uses a tagger.

Typing Speed Meter – VS 2013

This is a sample editor extension for Visual Studio 2013 that uses and IVsTextViewCreationListener and an adornment to create a typing speed meter.

Spell Checker – VS 2013

This sample uses smart tags and squiggles to display spelling errors in your comments inside of Visual Studio 2013. The extension provides an excellent example of how you use other services in combination with those provided in VS to add real-world functionality to the editor.

Options Page – VS 2013

This sample demonstrates how to add custom options pages into the standard Visual Studio Options dialog. The sample adds two options pages and demonstrates how to customize the presentation and properties' persistence.

Running Document Table Explorer – VS 2013

This sample demonstrates how to create an explorer that logs Running Document Table (RDT) events. Selecting an event from the grid displays its properties in the Properties Window.

WPF Tool Window – VS 2013

This sample demonstrates how to create a package that provides tool windows which host Windows Forms controls and WPF controls.

Windows Forms Control Installer – VS 2013

This sample demonstrates how to create a Visual Studio package (VSPackage) that loads custom Windows Forms controls into the Toolbox. The code defines two toolbox items: MyCustomTextBox, which is a normal Windows Forms control, and MyCustomTextBoxWithPopup, which provides a custom ToolboxItem that pops up a dialog box when the item is added.

Menu and commands – VS 2013

This sample demonstrates how to create menu and command items and visualize them inside Visual Studio’s menus and toolbars.

Editor with Toolbox – VS 2013

This sample demonstrates how to create a package that provides an Editor type extended with Toolbox support.

Combo Box – VS 2013

This sample demonstrates how to create combo boxes on Visual Studio’s toolbars. Four types of combo boxes that can be created are shown in this sample.

MSDN Search – VS 2013

This sample demonstrates how to extend Quick Launch and add a search provider to search outside Tools Options / Menus / Open Documents (the built-in providers).

Basic Source Control Provider – VS 2013

This sample demonstrates how to create a source control provider that registers with Visual Studio and can be selected as active source control provider.

Alternatively, you can download the entire set of above samples from:

Visual Studio 2013 SDK Samples.

Comments

  • Anonymous
    April 08, 2015
    Of the two sample solutions that I tried to build, a dialog is displayed stating that the solution is "incompatible" cannot be converted or built. OS: Windows 8.1 Professional x64 IDE: VS2013 Professional

  • Anonymous
    April 19, 2015
    You need to install the Visual Studio 2013 SDK first: www.microsoft.com/.../details.aspx