Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Combine Open FilesNew to Visual Studio Code? Get it now.
Combine Open Files

Combine Open Files

DVYIO

|
52 installs
| (0) | Free
Combine all open files into a single document
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Combine Open Files

A VS Code extension that provides a convenient sidebar interface to combine and export the content of all open files. Perfect for sharing code snippets, preparing documentation, or submitting code to LLMs and ChatGPT.

Features

  • 🔄 Sidebar Integration: Dedicated sidebar view for combined file content
  • 📝 Tab Order Preservation: Files are combined in the same order as your VS Code tabs
  • 📊 Token Counter: Built-in GPT token counter
  • ⚙️ Customizable Separators: Configure how files and paths are separated
  • 🎯 Workspace-Relative Paths: Shows file paths relative to your workspace

Installation

You can install this extension through the VS Code Marketplace.

  1. Open VS Code
  2. Press Ctrl+P / Cmd+P
  3. Type ext install DVYIO.combine-open-files
  4. Press Enter

Usage

  1. Click the "Combine Open Files" icon in the activity bar (sidebar)
  2. Click "Combine Open Files" button to generate combined content
  3. Use "Copy" button to copy the content to clipboard
  4. View token count for AI interactions (based on GPT tokenizer)

The extension will combine files in the order they appear in your VS Code tabs.

Configuration

This extension contributes the following settings:

combineOpenFiles.fileSeparator

  • Specifies the text used to separate different files in the combined output
  • Default: ==========
  • Examples:
    • ==========
    • ----------
    • ### File Break ###

combineOpenFiles.pathSeparator

  • Specifies the text used to separate file paths from their contents
  • Default: `` (empty string)
  • Examples:
    • ---
    • >>>
    • Content:

To modify these settings:

  1. Open VS Code Settings (Ctrl+, / Cmd+,)
  2. Search for "Combine Open Files"
  3. Edit the settings as desired

License

This project is licensed under the MIT license.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft