How to: Share Snippets with other Developers
The storage mechanism for IntelliSense Code Snippets makes it easy to share snippets with other developers.
Before you use a downloaded code snippet, determine the trustworthiness of the code outside of Visual Studio. Building, debugging, and running projects in Visual Studio that include the code snippet automatically executes code on your local machine in the trusted process of devenv.exe. For more information, see.
To share your code as a snippet
Create a snippet file that contains the code you want to share. For more information, see.
Share the file you created with other developers as you would share any other file, including mail attachment, network share, and floppy disk or CD.
To use a snippet from another source
Copy the snippet file to a folder that is recognized as a snippet folder by Visual Studio. Then insert the snippet using the picker. For more information, seeand .