A fast, configurable plugin to copy file and folder contents from the project tree across all JetBrains IDEs.
CopyCat is a JetBrains IDE plugin that adds a fast, configurable way to copy file and folder contents directly from the project file tree. It supports recursive folder copying, code formatting, and a built-in Lines of Code analyzer.
Compatible with all JetBrains IDEs: IntelliJ IDEA, RustRover, PyCharm, WebStorm, GoLand, Rider, CLion, DataGrip, and all others.
Right-click any file or folder in the project tree and select CopyCat to copy its contents to the clipboard. For folders, it recursively copies all files inside, including nested subdirectories.
A dedicated settings panel (accessible via the CopyCat tool window in the sidebar) lets you configure how content is copied:
Content
- Include the full file path as a header above each file
- Include the file name as a header above each file
- Copy content wrapped in Markdown code blocks with language detection
- Copy only the lines currently selected in the editor
Filters
- Strip all comments before copying
- Strip package declarations and import statements
- Copy as plain text (removes comments, blank lines, and imports)
- Exclude non-code files such as
.json,.xml,.lock,.yml, and others - Exclude hidden files and folders
- Exclude files over a configurable line threshold (default: 500 lines)
Display
- Show total line and character count in the status bar after each copy
Menu
- Toggle the CopyCat Lines Counter submenu on or off in the right-click menu
The CopyCat tool window includes a Lines of Code tab. Click Scan Project to analyze the entire project and see:
- Total lines of code and project size
- Total lines excluding comments and the difference
- Total lines across code-only files and the difference
- A breakdown by folder, expandable to show individual files with line counts, comment-stripped counts, and file sizes
Right-clicking a file or folder also shows a CopyCat Lines Counter submenu with an instant compact summary:
- File or folder name
- Total lines and lines without comments
- File count (for folders) and size
- Open your JetBrains IDE
- Go to Settings → Plugins → Marketplace
- Search for CopyCat
- Click Install
- Download the latest
.zipfrom the Releases page - Open your JetBrains IDE
- Go to Settings → Plugins → gear icon → Install Plugin from Disk
- Select the downloaded
.zipfile - Restart the IDE
- Open any project in a JetBrains IDE
- Right-click any file or folder in the Project panel
- Click CopyCat to copy the content to your clipboard
- To configure behavior, open the CopyCat panel from the right sidebar
- To view line statistics, open the CopyCat panel and go to the Lines of Code tab
Contributions, feature requests, and bug reports are welcome. Please open an issue or submit a pull request on this repository.
This project is licensed under the MIT License.



