Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Snippet Pack Project Template
Snippet Pack Project Template

Snippet Pack Project Template

Mads Kristensen

|
3,755 installs
| (2) | Free
A Visual Studio project template for creating code snippet packs targeting any supported language. The snippet pack will be an extension you can share with your team or upload to the Visual Studio ext
Download

A Visual Studio project template for creating code snippet packs targeting any supported language. The snippet pack will be an extension you can share with your team or upload to the Visual Studio extension gallery.

See the change log for changes and road map.

Features

  • Create snippet pack extensions
  • Works with all supported languages like C#, VB, JavaScript, HTML etc.
  • The snippet packs will work in Visual Studio 2012, 2013 and 2015.

How to use

Create a new project and select the Snippet Pack Extension.

New Project Dialog

That will create a VSIX project with the following structure:

Solution Explorer

Instructions will automatically show up on how to modify the snippets to your scenario.

Changing language

Snippets are per language, and this snippet pack is targeting JavaScript by default. It is easy to change so you can target any other language supporting snippets.

To do that, open Snippets/snippets.pkgdef and follow the instructions found at the top of that file.

You can also have snippets for multiple languages. To do that, add an additional entry in theSnippets/snippets.pkgdef for the new language and add an additional folder with snippets targeting that language.

Changing name

The Snippets folder contains a folder which has the name of your extension. You can name this folder whatever you want as long as you also change the name insnippets.pkgdef accordingly.

.snippet files

The .snippet must have a few properties set correctly for this to work.

Select one or more .snippet files and hit F4 to bring up the property grid. Set the following properties:

  • Build action : Content
  • Include in VSIX: True

Read more about the possibilities with code snippets on MSDN

Examples

Here are some of the snippet packs made by this template:

  • JavaScript Snippet Pack
  • HTML Snippet Pack
  • React Snippet Pack
  • Gulp Snippet Pack

Contribute

Check out the contribution guidelines if you want to contribute to this project.

For cloning and building this project yourself, make sure to install the Extensibility Tools 2015 extension for Visual Studio which enables some features used by this project.

License

Apache 2.0

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft