This task can be performed using Hycode
Enabling developers to save, share and reuse code.
Best product for this task

Hycode
dev-tools
Hycode is a browser application that gives developers a secure and centralised vault to save their frequently used code snippets. Hycode also supports teams of developers so they can be aligned, contribute and reuse shared, version-controlled code.
Save Code SnippetsVersion-Control SnippetsPrevent Code RewritesStreamline Development WorkflowAlign Development Team

What to expect from an ideal product
- Store all your code snippets in one secure online place instead of having them scattered across notes and files
- Tag and organize snippets with custom labels to quickly find what you need when coding
- Share useful code blocks with your team members to avoid writing the same stuff twice
- Keep track of snippet changes with version control, so you always have the latest working code
- Access your favorite code bits from any computer through the web browser, no installation needed