Flatten Repository

A VS Code extension that helps you flatten your codebase into a single file for easy sharing and analysis.
Features
Installation
- Open VS Code
- Go to the Extensions view (Ctrl+Shift+X)
- Search for "Flatten Repository"
- Click Install
Usage
- Open your project in VS Code
- Press
Ctrl+Shift+P to open the command palette
- Type "Flatten Repository" and select one of the commands:
- "Flatten Project to TXT"
- "Create/Edit .flatten_ignore File"
Configuration
The extension can be configured through:
.flatten_ignore file in your project root
- VS Code settings
- Command palette options
.flatten_ignore Example
# Global ignore patterns
[global]
node_modules/
dist/
build/
.flattened/
# Local whitelist patterns
[whitelist]
src/main.js
test/main.test.js
# Local blacklist patterns
[blacklist]
test/coverage/
docs/api/
# Settings
[settings]
maxTokenLimit=8000
maxConcurrentFiles=10
useGitIgnore=true
VS Code Settings
flattenRepo.includeExtensions : File extensions to include
flattenRepo.ignoreDirs : Directory names to ignore
flattenRepo.useGitIgnore : Use .gitignore patterns
flattenRepo.maxChunkSize : Maximum characters per chunk
flattenRepo.globalWhitelist : Global include patterns
flattenRepo.globalBlacklist : Global exclude patterns
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
License
MIT License - see LICENSE for details
Support
Version History
See CHANGELOG.md for version history and changes.
| |