Skip to content
Snippets Groups Projects

README

This project builds a Visual Studio extension (VSIX) containing code snippets commonly used in Beckman projects.

Use

The C# snippets are mostly standalone code generators. Simply type the snippet shortcut and hit Tab twice to autogenerate the code defined in the snippet.

The HTML element snippets are designed to surround a selection, as when converting text pasted from a word document. Select the text you wish to wrap, press ctrl+k, ctrl+s to open the surround dialog, navigate to the appropriate snippet, and press Tab to wrap the selection in an HTML element.

Common Installation

  1. In visual studio, open Tools > Options.
  2. Click Extensions and Updates, and scroll to the Additional Extension Galleries section.
  3. Click Add. Change Name to "Beckman Private Gallery", and URL to file:///<X>:/<PathToGallery>/VisualStudioExtensions/atom.xml. Click Apply.
  4. Open Tools > Extensions and Updates.
  5. Expand the Online galleries. You should see a Beckman gallery with an update to the snippets extension.

Manual Installation

  1. Clone this project and build in Visual Studio.
  2. In File Explorer, navigate to /Beckman.Snippets/bin/Release/.
  3. Double-click the Beckman.Snippets.vsix file and follow the installation instructions.

Updating the Extension

  1. Add new snippet.
  2. Build project using Release configuration.
  3. Copy Beckman.Snippets.vsix file from bin/Release/ to gallery directory.
  4. Update atom.xml. This will have to be done by hand until we have a real distribution mechanism.