Skip to content

Copy File Content is a plugin for IntelliJ IDEs that allow you to quickly copy the contents of selected files and directories to the clipboard, formatted according to customizable settings.

Notifications You must be signed in to change notification settings

mwguerra/copy-file-content

Repository files navigation

Copy File Content Plugin Icon Copy File Content Plugin

Description

Copy File Content is a plugin that enhances your workflow by allowing you to quickly copy the contents of selected files and directories to the clipboard, formatted according to customizable settings.

Installation

To install the Copy File Content plugin in IntelliJ IDEA, follow these steps:

Install using the IDE built-in plugin system

Settings/Preferences > Plugins > Marketplace > Search for "copy-file-content" > Install

Install manually

Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...

Usage

Once the plugin is installed, you can use it to copy file content in the following way:

  1. Select the files or directories whose content you want to copy.
  2. Right-click on the selection.
  3. Choose the "Copy File Content to Clipboard" option from the context menu.

Settings can be found searching for Copy File Content Settings under Preferences.

Features

  • Copy Content: Copy the content of multiple files to the clipboard.
  • Customizable Text Structure: Define pre-text, file header text, and post-text for copied content.
  • File Copying Constraints: Set a maximum number of files to copy content from to prevent memory issues.
  • File Extension Filters: Specify which file extensions should be copied.
  • Copy Information: Receive information about the copied items, including the number of files copied, total lines, total words, and an estimate of tokens for the copied content.

License

This plugin is licensed under the MIT License.

Support

For any issues or feature requests, please open an issue on GitHub.

Author

This plugin is developed by Marcelo W. Guerra. You can contact the author via email at [email protected] or visit his website for more information.


Plugin based on the IntelliJ Platform Plugin Template.