FolderFusion
Visual Studio Code extension for combining code files in a folder into a single output, optimized for LLM workflows.

🚀 Features
- Clipboard & File Output: Copy merged code directly to the clipboard, or save to a new file.
- Exclude Patterns: Ignore
node_modules , .git , or any custom glob patterns configured by you.
- File Separators: Optionally insert
// ==== File: path/to/file ==== headers between snippets.
- Extension Filtering: Pick which file types to include via a quick‑pick UI.
- ASCII Tree: Generate a visual ASCII directory tree of your selected folders.
- Interactive Prompts: Commands available in the Command Palette.
⚙️ Configuration
Configure via Settings → Extensions → FolderFusion:
Setting |
Type |
Default |
Description |
folderFusion.exclude |
string[] |
['**/node_modules/**', '**/.git/**'] |
Glob patterns to ignore when collecting files. |
folderFusion.includeSeparator |
boolean |
true |
Insert file‑path comments between merged snippets. |
folderFusion.codeFileExtensions |
string[] |
['.ts','.js','.cs',...] |
File extensions considered “code” for quick merge. |
🛠️ Installation & Usage
From VS Code Marketplace
- Open VS Code
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for FolderFusion
- Click Install
From Source
Prerequisites
- Clone the repo
git clone https://github.com/brkyzdmr/folder-fusion.git
cd folder-fusion
- Install dependencies
npm install
- Compile & Package
npm run compile
vsce package
- Install VSIX
- Restart VS Code
📋 Commands
- Combine to Clipboard: Right‑click on files/folders → FolderFusion: Combine to Clipboard
- Combine to File: Right‑click → FolderFusion: Combine to File (choose save location)
- Generate Tree: Right‑click → FolderFusion: Generate Folder Structure
💡 Tips
- Select multiple folders or files together for bulk operations.
- Use exclude globs to skip large directories like
dist/ or build/ .
- Paste merged snippets straight into ChatGPT or other tools for context‑aware analysis.
📄 License
This project is licensed under the MIT License. See LICENSE for details.
| |