Select multiple files across multiple folders, right-click on them, and copy their contents and, optionally, diagnostics into the clipboard as one text stream.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Allows users to select multiple files across multiple folders, right-click on them, and copy their contents into the clipboard as one text stream, optionally including vs code diagnostics output for those files. Each file's content will be preceded by its filename, and the files and folders will be placed in the text stream in the order they were selected.
Features
File Copying
Right-click on files to copy their contents as a text stream
Copy multiple files and folders in the order they were selected
File contents are formatted with clear separators and filenames
Diagnostics output can be included
Works across multiple folders
Usage
Copying Files and Folders
Select one or more folders in the VS Code explorer
Right-click and select "Copy Files as Text Stream" or "Copy Files and Files in Folders as Text Stream"
All files within the selected folders will be copied to your clipboard
Include Diagnostics
Select one or more folders in the VS Code explorer
Right-click and select "Copy Files, including Diagnostics" or "Copy Files and Files in Folders, including Diagnostics"
All files within the selected folders and their vs code diagnostics will be copied to your clipboard
Example Output
File Copying
--- src/file1.ts ---
content of file1
--- src/utils/file2.ts ---
content of file2
--- src/components/file3.ts ---
content of file3
Known Issues
None reported.
Contributing
Feel free to submit issues and enhancement requests on the GitHub repository.