Code Exporter
Author: bleuren
This VS Code extension exports code from specified directories into a single document.
Features
- Include/Exclude Directories & File Extensions: Configure which directories and file types to include or exclude.
- Prompt Injection: Specify a prompt text to be prepended to the exported output.
- Pattern-based Export: Use file patterns to export specific files.
Usage
- Open your project in VS Code.
- Press Ctrl+Shift+P (or Cmd+Shift+P on macOS) and run one of these commands:
- Export Code: Exports code from the configured directories.
- Export Filtered Content: Exports content based on a file pattern.
- A new document will open with the exported content.
Configuration
Search for code-exporter in VS Code settings to customize:
- includedDirs: List of directories to include (default:
["app", "routes", "config", "resources", "database"] ).
- includedFileExtensions: List of file extensions to include (default:
[".php", ".js", ".css", ".html", ".vue"] ).
- excludedDirs: List of directories to exclude (default:
["vendor", "node_modules", ".git"] ).
- excludedFileExtensions: List of file extensions to exclude (default:
[".min.js", ".map"] ).
- prompt: Specify a prompt text to include at the beginning of the output.
| |