Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Code ExporterNew to Visual Studio Code? Get it now.
Code Exporter

Code Exporter

bleuren

|
88 installs
| (0) | Free
Automatically exports code from specified directories.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. Open your project in VS Code.
  2. 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.
  3. 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.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft