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 code fragments in a secure online vault accessible from any browser
- Share and sync snippets with your team members to keep everyone on track
- Track changes and updates to code pieces with built-in version history
- Search and find the right code snippet quickly when you need it
- Add comments and tags to organize snippets for better reusability