Highlights the text that was just copied to the clipboard with customizable colors and blinking effects.
See the plugin in action - when you copy text, it highlights with a customizable blinking effect:
Before Copy | After Copy (Highlighted) |
---|---|
![]() |
![]() |
Features:
- π¨ Highlights copied text with configurable background and foreground colors
- β¨ Configurable blinking effect with customizable blink count and interval
- π― Multi-cursor support with intelligent selection handling
- π Smart line copying when no text is selected (copies entire line)
- βοΈ Easy configuration through IDE settings (
Tools β Highlight on Copy
) - π Works with ANY copy action - Ctrl+C, Edit menu, right-click copy, etc.
- π¨ Supports both standard (#RRGGBB) and alpha (#RRGGBBAA) hex colors
Perfect for visual feedback when copying code, making it immediately clear what was just copied to the clipboard.
Usage:
- Copy text using any method (Ctrl+C, Edit menu, right-click) - copied text will blink
- With no selection, copy action will highlight the entire line
- Multiple cursors supported - all selections will be highlighted
- Configure colors, blink count, and timing in
Settings β Tools β Highlight on Copy
-
Using the IDE built-in plugin system:
Settings/Preferences > Plugins > Marketplace > Search for "Highlight on Copy" > Install
-
Using JetBrains Marketplace:
Go to JetBrains Marketplace and install it by clicking the Install to ... button in case your IDE is running.
You can also download the latest release from JetBrains Marketplace and install it manually using Settings/Preferences > Plugins > βοΈ > Install plugin from disk...
-
Manually:
Download the latest release and install it manually using Settings/Preferences > Plugins > βοΈ > Install plugin from disk...
./gradlew build
./gradlew test
./gradlew runIde
- π¨ Customizable highlighting: Configure background and foreground colors
- β¨ Configurable blinking: Control blink count and timing
- π― Multi-cursor support: Handles multiple selections intelligently
- π Smart line copying: Highlights entire line when no text is selected
- βοΈ Easy configuration: Simple settings panel in IDE preferences
- π Works with any copy method: Ctrl+C, Edit menu, right-click copy
- π¨ Alpha color support: Use transparent colors with 8-character hex codes
-
Clone this repository:
git clone https://github.com/Hazzajenko/Jetbrains-Highlight-on-Copy.git cd Jetbrains-Highlight-on-Copy
-
Open in IntelliJ IDEA:
File β Open
and select the project directory- Wait for Gradle to sync
-
Build and run:
./gradlew runIde
This will start a new IDE instance with your plugin loaded.
- Go to
File β Settings β Plugins
(orIntelliJ IDEA β Preferences β Plugins
on macOS) - Search for "Highlight on Copy"
- Click Install and restart the IDE
Or install directly from the JetBrains Marketplace
The plugin listens for any copy action and provides visual feedback. When you copy text:
- With text selected: Highlights the selected text with a blinking effect
- With no selection: Highlights the entire current line
- With multiple cursors: Highlights all selections
- Works with any copy method: Ctrl+C, Edit menu, right-click copy, etc.
-
Go to
File β Settings β Tools β Highlight on Copy
(orIntelliJ IDEA β Preferences β Tools β Highlight on Copy
on macOS) -
Available settings:
- Background Color: Color of the highlight background (default: light red #E66159)
- Foreground Color: Text color during highlight (leave empty for no change)
- Number of Blinks: How many times the text blinks (default: 1)
- Blink Interval: Time between blinks in milliseconds (default: 150ms)
- Highlight Timeout: Legacy setting for backwards compatibility (default: 1000ms)
The plugin works with all copy methods:
- Keyboard shortcut:
Ctrl+C
/Cmd+C
- Edit menu:
Edit β Copy
- Right-click context menu:
Copy
- Any other copy action in the IDE
# Build the plugin
./gradlew buildPlugin
# Run tests
./gradlew test
# Run IDE with plugin
./gradlew runIde
# Verify plugin compatibility
./gradlew verifyPlugin
The plugin includes comprehensive tests:
./gradlew test
Test coverage includes:
- Simple text selection copying
- Empty selection (line copying)
- Multi-cursor selections
- Action availability checks
- Fork the repository
- Create a feature branch:
git checkout -b feature-name
- Make your changes and add tests
- Run tests:
./gradlew test
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Comprehensive unit test suite covering all core functionality
- Tests for color parsing with various hex formats including edge cases
- Tests for settings persistence and state management
- Tests for UI configuration components and lifecycle
- Migrated from deprecated
addAnActionListener
to declarative listener registration using message bus infrastructure for better performance and future compatibility
- Fixed an issue where text selections were not restored after the highlight animation finished.
- Fixed a bug where copying a line with no selection would cause the entire line to become selected after the highlight.
- Removed deprecated HighlightOnCopyAction and HighlightOnCopyActionTest as its not needed anymore.
- Visual feedback when copying text to clipboard with customizable blinking effect
- Multi-cursor support with intelligent selection handling
- Smart line copying - highlights entire line when no text is selected
- Configurable background and foreground colors for highlights
- Support for both standard (#RRGGBB) and alpha (#RRGGBBAA) hex color formats
- Adjustable blink count and timing interval settings
- Compatibility with all copy methods (Ctrl+C, Edit menu, right-click copy)
- Easy configuration through IDE settings panel at
Tools β Highlight on Copy
If you encounter any issues or have suggestions:
- Check the Issues page
- Create a new issue with:
- IDE version
- Plugin version
- Steps to reproduce
- Expected vs actual behavior