16 Share and Use Code Snippets

Snippets host reusable code in files that can be used in the project and shared with other project members. A snippet could include a small block of reusable source code or text that could be incorporated into larger modules.

Content in snippet files doesn't have to be code, but it must be useful. This content could be notes that you want to share with project members, or something you want to keep private, such as a reminder to yourself. If a snippet is shared, project members can copy or download the snippet files and then use them in their own applications.

A snippet can contain several files. When you create a snippet, you can add only one file but, after creating the snippet, you can add additional files.

VB Studio sets these defaults for the maximum size limits for snippets:
  • Maximum object size: 1MB
  • Maximum repository size: 1GB