Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>copytabs for VSCodeNew to Visual Studio Code? Get it now.
copytabs for VSCode

copytabs for VSCode

Prodypanda

|
110 installs
| (2) | Free Trial
| Sponsor
This Visual Studio Code extension allows you to copy the content of all opened tabs into a new tab, including their file locations. Perfect for sharing code context with AI assistants, code reviews, documentation, debugging, and teaching. Easily compile and share your entire project or selected file
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

📋 Copy All Tabs to New Tab - VS Code Extension

Visual Studio Marketplace Release Date Visual Studio Marketplace Version Visual Studio Marketplace Downloads Visual Studio Marketplace Installs

This Visual Studio Code extension allows you to copy the content of all opened tabs into a new tab or directly to your clipboard, including their file locations. It's a powerful tool for various use cases, especially when working with AI code assistants or needing to share your codebase context.

Effortlessly compile and share your entire project context with this powerful VS Code extension. Perfect for AI-assisted coding, code reviews, documentation, and teaching.

Streamline your workflow and enhance collaboration by quickly sharing your codebase context. Ideal for use with AI code assistants, team code reviews, and more!

Visual Studio Marketplace Last Updated

🚀 Key Features

  • Copy tabs content to a new tab or directly to clipboard
  • Copy all opened tabs or selectively copy chosen tabs
  • Custom formatting option for copied content
  • Includes a structured file tree for better context
  • Includes the file location at the top of each file's content
  • Preserves the order of the tabs as they appear in your editor
  • Adds convenient status bar items for quick access (customizable)
  • Configurable file type inclusion/exclusion
  • Option to include or exclude comments
  • Customizable separator between files
  • Keyboard shortcuts for quick access
  • History panel for managing copied content
  • Full localization support (English, French, German)
  • Beautiful, responsive history interface

💡 Use Cases

  1. AI Code Assistants: Easily share your entire project context with web-based AI code assistants like ChatGPT or GitHub Copilot. Example: Copy all your project files and paste them into a ChatGPT conversation for in-depth code reviews or refactoring suggestions.

  2. Code Reviews: Quickly compile all changed files for a comprehensive code review. Example: Before a pull request, copy all modified files to share with your team for feedback.

  3. Documentation: Generate a single-file overview of your project structure and contents. Example: Create a quick project snapshot for documentation purposes or to share with new team members.

  4. Debugging: Gather all relevant files when seeking help with a complex bug. Example: Copy all files related to a specific feature to share in a Stack Overflow question or with support.

  5. Teaching and Presentations: Easily collect multiple code files for educational purposes. Example: Prepare a coding lesson by copying all relevant example files into a single document.

🛠️ Installation

  1. Open Visual Studio Code
  2. Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X on macOS)
  3. Search for "Copy All Tabs to New Tab"
  4. Click Install

🖱️ Usage

There are four main features, each accessible via the status bar, command palette, or keyboard shortcut:

1. Toggle Clipboard Mode:

  • Status Bar: Click the "🔄 Clipboard Mode" or "🪟 Tab Mode" item to toggle
  • Command Palette: "Toggle Clipboard Mode"
  • Keyboard Shortcut: Ctrl+Shift+T (Windows/Linux) or Cmd+Shift+T (macOS)

2. Copy All Tabs:

  • Status Bar: Click on the "📁 Copy All" item
  • Command Palette: "Copy All Tabs to New Tab"
  • Keyboard Shortcut: Ctrl+Shift+C (Windows/Linux) or Cmd+Shift+C (macOS)

Copy All Tabs Demo

3. Copy Selected Tabs:

  • Status Bar: Click on the "✅ Copy Selected" item
  • Command Palette: "Copy Selected Tabs to New Tab"
  • Keyboard Shortcut: Ctrl+Shift+S (Windows/Linux) or Cmd+Shift+S (macOS)

Copy Selected Tabs Demo

4. Copy Tabs with Custom Format:

  • Status Bar: Click on the "⚙️ Copy Custom" item
  • Command Palette: "Copy Tabs with Custom Format"
  • Keyboard Shortcut: Ctrl+Shift+F (Windows/Linux) or Cmd+Shift+F (macOS)

Copy Custom with Tree Demo

5. History Panel:

  • View Button: Click the 📜 history icon in the activity bar
  • Command Palette: "Show History Panel"
  • Keyboard Shortcut: Ctrl+Shift+H (Windows/Linux) or Cmd+Shift+H (macOS)

The History Panel allows you to:

  • View your copy history
  • Preview copied content
  • Re-copy previous items
  • Delete individual items
  • Clear entire history
  • See timestamps for each copy
  • Track remaining history slots

Using Commands:

You can also access all features through the Command Palette (F1 or Ctrl+Shift+P / Cmd+Shift+P):

Using Commands Demo

Extension Settings:

Customize the extension behavior through VS Code settings:

Extension Settings Demo

Structured File Tree

When enabled, a structured file tree is included at the top (or bottom) of the copied content, providing a clear overview of your project structure. This feature is especially useful when sharing your codebase with AI assistants or during code reviews.

🤖 Example Workflow with AI Code Assistant

  1. Open all relevant files in your VS Code project.
  2. Enable Clipboard Mode if you want to paste directly into the AI assistant.
  3. Use the extension to copy all tabs (or selected tabs).
  4. Open your preferred AI code assistant (e.g., ChatGPT).
  5. Paste the copied content and ask for code review, optimization suggestions, or any other coding assistance.

This workflow allows you to quickly provide full context to the AI assistant, leading to more accurate and helpful responses.

📊 Copy Statistics

When copying tabs, you'll now see detailed statistics in the notification:

  • ✅Number of successfully copied files
  • ❌Number of failed files (if any)
  • ❌List of failed files (if any)
  • 📊Total token count (useful for AI assistants)

Example notification:

5 Tabs copied to clipboard!-✅ Success: 5-📊 Tokens: 1,234

Or with failures:

3 Tabs copied to clipboard!-✅ Success: 3-❌ Failed: 2-❌ Files: test.jpg, binary.exe-📊 Tokens: 567

⚙️ Configuration

This extension contributes the following settings:

  • copytabs.copyToClipboard: Copy tabs content directly to clipboard instead of opening in a new tab (default: false).
  • copytabs.includeFileTypes: File types to include in the copy process. Leave empty to include all files.
  • copytabs.excludeFileTypes: File types to exclude from the copy process.
  • copytabs.separatorLine: The separator line to use between files.
  • copytabs.includeComments: Whether to include comments in the copied content.
  • copytabs.includeLineNumbers: Include line numbers in the copied content.
  • copytabs.includeFileTree: Include a structured file tree in the copied content.
  • copytabs.structuredTreePosition: Position to include the structured file tree (start or end of the document).
  • copytabs.showCopyAllButton: Show the 'Copy All' button in the status bar.
  • copytabs.showCopySelectedButton: Show the 'Copy Selected' button in the status bar.
  • copytabs.showCopyCustomButton: Show the 'Copy Custom' button in the status bar.

You can modify these settings in your VS Code settings.json file. For example:

{
    "copytabs.copyToClipboard": true,
    "copytabs.showCopyCustomButton": false
}

This allows you to customize which buttons appear in your status bar and how the extension behaves, optimizing your workspace according to your needs and preferences.

📋 Requirements

This extension requires Visual Studio Code version 1.91.0 or higher.

🐛 Known Issues

There are no known issues at this time. If you encounter any problems, please file an issue on the GitHub repository.

📝 Release Notes

[1.0.3] - 2025-03-06

Added

  • Restored file count in copy notifications
  • Added token count statistics to notifications
  • Added failed files list to notifications for better error tracking
  • Added detailed copy statistics:
    • Success count
    • Failed count
    • Total tokens
    • Failed files list

Changed

  • Improved notification format for better readability
  • Updated documentation with new notification features

[1.0.0] - 2024-03-05

Major update focusing on History management & Localization:

  • New History Panel feature:
    • Dedicated activity bar view for copy history
    • Preview copied content
    • Re-copy previous items
    • Delete individual history items
    • Clear entire history
    • Beautiful, responsive UI
    • History limit indicator
    • Timestamps for all copies
  • Full localization support:
    • Added French (fr) translation
    • Added German (de) translation
    • Localized all UI elements
  • New keyboard shortcut:
    • Ctrl/Cmd+Shift+H to open history panel

[0.3.0] - 2024-03-02

Major update focusing on stability and user experience:

  • Improved error handling and recovery
  • Better progress reporting
  • More efficient file processing
  • Enhanced clipboard mode
  • Better handling of large files
  • Improved status bar management

For a full list of changes, please see the CHANGELOG.md file.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This extension is licensed under the MIT License.

💪 Support

If you find this extension helpful, consider:

  • Star the repository on GitHub
  • Leave a review on the VS Code Marketplace
  • Report any issues or suggest features on the GitHub repository Buy Me a Coffee

💡 Try it now and supercharge your coding experience!

Thank you for using Copy All Tabs to New Tab!

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