Uni-Copy is a Visual Studio Code extension that allows users to concatenate the contents of files in a folder and copy them to the clipboard by simply right-clicking and selecting "Unified Copy". It supports both normal and recursive operations. In addition, it now supports copying the contents of all open tabs, with each tab’s content preceded by its file name.
Features
Unified Copy (Folder): Combine the contents of files in a selected folder and copy them to the clipboard.
Recursive Mode: Optionally include files from subdirectories.
Tab Copy: Copy the contents of all open tabs. Each tab’s content is prefixed with its file name (excluding the path).
File Limit: Processes up to 30 files to prevent excessive memory usage.
Commands
Unified Copy: Combines the contents of files in the selected folder.
Unified Copy Recursively: Combines the contents of files in the selected folder and its subdirectories.
Unified Copy Tabs: Combines the contents of all open tabs and copies them to the clipboard.
Usage
Folder Copy
Right-click on a folder in the VS Code Explorer.
Select Unified Copy or Unified Copy Recursively from the context menu.
The contents of the files will be concatenated and copied to your clipboard.
Tab Copy
Right-click on an open tab or the editor title area.
Select Unified Copy from the context menu.
The contents of all open tabs, along with their file names as headers, will be concatenated and copied to your clipboard.
Installation
Open the Extensions view in Visual Studio Code (Ctrl+Shift+X).
Search for "Uni-Copy".
Click Install.
Limitations
Only processes up to 30 files.
Skips unreadable files.
Uni-Copy 拡張機能
概要
Uni-Copyは、フォルダ内のファイル内容を結合してクリップボードにコピーできるVisual Studio Codeの拡張機能です。右クリックして「Unified Copy」を選択するだけで操作できます。通常モードと再帰モードの両方をサポートしています。さらに、開いているタブすべての内容をコピーする機能も追加され、各タブの内容はファイル名(パスは除く)をヘッダーとして表示されます。