A context packaging tool that lets devs quickly scoop up snippets from different files, organize them, then spit them out in a neat format ready to paste into ChatGPT/Claude/Gemini/whatever
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
SnippetFuse is a context packaging tool that helps package code snippets, terminal logs, and project structures from different files into a single context format for AI assistants like ChatGPT, Claude, and Gemini.
Demo
Features
Quick Snippet Capture: Easily capture code from your active editor. Use a simple command to add selected code to the AI context.
Smart Snippet Management: Organize your snippets with a clear distinction between the "Main Issue" and "Context" to guide the AI's focus.
A sidebar panel for managing snippets.
Choice to include a project tree to give the AI a complete overview of your codebase's structure.
Terminal Log Capture: Add relevant terminal output to provide a full picture of the problem.
Customizable Output: Simply copy it to your clipboard for instant pasting or export it as a Markdown file or a text file
How to Use
1. Open the SnippetFuse View
Open the SnippetFuse view by clicking on the extension icon in the Activity Bar on the side of VS Code.
2. Capture Code Snippets
Add to AI Context: Select a code block in your editor, right-click, and choose Add Snippet. If it's your first snippet, it will be added as the "Main Issue." Subsequent snippets will be added as "Context."
Set as Main Issue: To explicitly set a snippet as the primary focus, select the code, right-click and choose Set Main Issue.
Add to Context Field: To add a supporting snippet, select the code, right-click and choose Append to Context Field.
3. Add More Context
Terminal Log: Expand the "Terminal Log" section and paste any relevant terminal output.
Project Tree: Check the "Add Project Tree" box to automatically generate and include a summary of your project's file structure.
4. Export Your Context
Copy to Clipboard: Click the copy icon to copy the entire formatted context to your clipboard.
Export to File: Use the dropdown menu to export your context as a .md or .txt file directly into your workspace.
Contributing
SnippetFuse is an open-source project. Contributions, issues, and feature requests are welcome!