How to: Share Snippets with other Developers
The storage mechanism for IntelliSense Code Snippets makes it easy to share snippets with other developers.
Security Note: |
---|
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 Security Considerations in Using Snippets. |
To share your code as a snippet
Create a snippet file that contains the code you want to share. For more information, see Creating Code Snippets.
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, see How to: Insert IntelliSense Code Snippets and How to: Manage Code Snippets.
See Also
Tasks
Concepts
How to: Insert IntelliSense Code Snippets