-
-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Welcome to the official wiki for the Copy All Tabs to New Tab extension for Visual Studio Code! This wiki provides comprehensive documentation on installation, features, usage, and configuration.
- Overview
- Installation
- Key Features
- Usage Guide
- Configuration Options
- Use Cases
- File Tree Feature
- Troubleshooting
- Contributing
- Release Notes
Copy All Tabs to New Tab is a powerful Visual Studio Code extension that allows you to effortlessly compile and share your entire project context. Whether you're working with AI code assistants, conducting code reviews, or preparing documentation, this extension streamlines your workflow by making it easy to copy the content of multiple tabs into a new tab or directly to your clipboard.
- Streamlined Context Sharing: Quickly gather all relevant code files for AI assistance, code reviews, or debugging
- Enhanced Documentation: Generate comprehensive snapshots of your project structure
- Flexible Output Options: Choose between copying to a new tab or directly to clipboard
- Customizable Experience: Extensive configuration options to tailor the output to your needs
- Open Visual Studio Code
- Access the Extensions view:
- Windows/Linux:
Ctrl+Shift+X - macOS:
Cmd+Shift+X
- Windows/Linux:
- Search for "Copy All Tabs to New Tab"
- Click Install
Alternatively, you can install it from the Visual Studio Code Marketplace.
- Multi-Mode Operation: Copy to new tab or clipboard
- Selective Copying: Copy all tabs or only selected ones
- Custom Formatting: Define your own format for copied content
- File Tree Generation: Include a structured file tree for better context
- Configurable Output: Control what gets included in the copied content
- Status Bar Integration: Quick access to all features
- Keyboard Shortcuts: Efficiently trigger actions
- Click the "$(files) Copy All" button in the status bar
- Or use the Command Palette (
F1orCtrl+Shift+P) and search for "Copy All Tabs to New Tab" - Or use the keyboard shortcut:
Ctrl+Shift+C(Windows/Linux) orCmd+Shift+C(macOS)
- Click the "$(list-selection) Copy Selected" button in the status bar
- Choose the tabs you want to copy from the quick pick menu
- Or use the keyboard shortcut:
Ctrl+Shift+S(Windows/Linux) orCmd+Shift+S(macOS)
Toggle between copying to a new tab or directly to clipboard:
- Click the clipboard mode indicator in the status bar (shows either "$(clippy) Clipboard Mode" or "$(window) Tab Mode")
- Or use the Command Palette and search for "Toggle Clipboard Mode"
- Or use the keyboard shortcut:
Ctrl+Shift+T(Windows/Linux) orCmd+Shift+T(macOS)
- Click the "$(settings-gear) Copy Custom" button in the status bar
- Enter your custom format using the following placeholders:
-
{filename}: Will be replaced with the file name -
{content}: Will be replaced with the file content -
{separator}: Will be replaced with the configured separator -
[NL]: Will be replaced with a new line
-
Example format:
// {filename}[NL][NL]{content}[NL][NL]{separator}[NL][NL]
| Action | Windows/Linux | macOS |
|---|---|---|
| Copy All Tabs | Ctrl+Shift+C |
Cmd+Shift+C |
| Copy Selected Tabs | Ctrl+Shift+S |
Cmd+Shift+S |
| Copy with Custom Format | Ctrl+Shift+F |
Cmd+Shift+F |
| Toggle Clipboard Mode | Ctrl+Shift+T |
Cmd+Shift+T |
To customize the extension, go to VS Code settings (Ctrl+, or Cmd+,) and search for "Copy All Tabs". Available options:
| Setting | Description | Default |
|---|---|---|
copytabs.copyToClipboard |
Copy directly to clipboard instead of new tab | false |
copytabs.includeFileTypes |
File types to include (empty = all) | [] |
copytabs.excludeFileTypes |
File types to exclude | [] |
copytabs.separatorLine |
Separator between files | ------------------------ |
copytabs.includeComments |
Include comments in copied content | true |
copytabs.includeLineNumbers |
Include line numbers | false |
copytabs.includeFileTree |
Include structured file tree | true |
copytabs.structuredTreePosition |
Position of file tree (start/end) | start |
copytabs.showCopyAllButton |
Show "Copy All" in status bar | true |
copytabs.showCopySelectedButton |
Show "Copy Selected" in status bar | true |
copytabs.showCopyCustomButton |
Show "Copy Custom" in status bar | true |
graph TD
A[Open relevant files] --> B[Copy all tabs]
B --> C[Paste into AI assistant]
C --> D[Get context-aware help]
- Open all changed files
- Use "Copy Selected Tabs" to choose relevant files
- Share the compiled code with reviewers
Generate a comprehensive overview of your project structure and contents for:
- Onboarding new team members
- Creating technical documentation
- Preparing tutorials or examples
- Open files related to the bug
- Copy all relevant code
- Share in bug reports or support requests
The extension can generate a structured file tree of your opened tabs:
File Tree:
project-name/
├── src/
│ ├── components/
│ │ ├── Header.js
│ │ └── Footer.js
│ └── utils/
│ └── helpers.js
└── README.md
This feature provides:
- Clear visualization of project structure
- Better context for code reviews
- Enhanced documentation
-
Extension not appearing in status bar
- Check if status bar buttons are enabled in settings
- Try reloading VS Code
-
Clipboard mode not working
- Ensure you have granted clipboard permissions to VS Code
-
Performance issues with large files
- Try using "Copy Selected Tabs" instead of copying all tabs
- Exclude unnecessary file types in settings
- File issues on our GitHub repository
- Reach out via VS Code Marketplace
We welcome contributions! Here's how you can help:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
Please ensure you:
- Follow the existing code style
- Add tests for new features
- Update documentation as needed
- Added Clipboard Mode feature
- New status bar item for toggling modes
- Added
copytabs.copyToClipboardconfiguration
- Added configuration for status bar buttons visibility
- Improved status bar customization
- Added demonstration videos to README
- Various bug fixes and improvements
- Initial release
- Added "Copy Selected Tabs" feature
- Added "Copy Tabs with Custom Format"
- Added structured file tree feature