A Visual Studio Code extension that copies the content of all open tabs to the clipboard, making it easier to provide context to Large Language Models (LLMs) or other text-based tools.
- Copy all open tabs in Visual Studio Code with a single command.
- Preserve the file structure and order of the tabs when copying.
- Include relative filenames along with the content of each file.
Download/use the latest copy-all-tabs-<version>.vsix file, or build it yourself locally.
- Open Visual Studio Code.
- Right click on the
***.vsixfile and select "Install Extension VSIX". - Once installed, you can find the extension in the Extensions view under the "Installed" tab.
- Open the tabs you want to copy in Visual Studio Code.
- Press
Ctrl+Shift+Pto open the command palette. - Type "Copy All Tabs" and select the command from the list.
- A notification will appear confirming that the tabs have been copied to the clipboard.
- Paste the copied content into your LLM chat or desired destination.
If you want to modify or contribute to this extension, follow these steps:
- Clone the repository.
- Run
npm installto install dependencies. - Make your changes in the
src/extension.tsfile. - Run
npm run compileto compile the TypeScript code. - Run
vsce packageto create a.vsixfile. - To test the extension, right-click the generated
.vsixfile and select "Install Extension VSIX" in Visual Studio Code.
Contributions are welcome! Please feel free to submit a Pull Request.
This extension is licensed under the MIT License.
If you have any questions, suggestions, or issues, please open an issue on the GitHub repository.