Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy HighlightNew to Visual Studio Code? Get it now.
Copy Highlight

Copy Highlight

octo-potato

|
5 installs
| (0) | Free
Visual feedback when copying text - briefly highlights selected text to confirm copy operations
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Highlight

A VS Code extension that highlights selected text on copy operations.
While it works great with copy operations, you can configure any custom keyboard shortcut to trigger the highlight effect (see Custom Keyboard Shortcuts).

//Todo: Add screenshot here

Features

  • Visual Feedback: Highlights selected text with copy shortcut or any customizable keyboard shortcuts
  • Copy Integration: Works seamlessly with standard copy operations Ctrl+C (Cmd+C for mac)
  • Custom Shortcuts: Configure any keyboard shortcut to trigger highlighting
  • Customizable Highlighting: Configure background color, transparency, and duration
  • Non-intrusive: Highlight automatically disappears after a configurable duration
  • Flexible Usage: Use with copy operations or as a standalone text highlighter

Copy Highlight Demo

The extension highlights selected text when triggered, making it clear what text is being focused on. Works with copy operations or custom shortcuts.

Requirements

  • VS Code 1.1.8 or higher

Extension Settings

This extension contributes the following settings:

  • copyHighlight.backgroundColor: Background color for copy highlighting (hex color, default: #ffff00)
  • copyHighlight.transparency: Transparency level for copy highlighting (0-1, default: 0.3)
  • copyHighlight.duration: Duration in milliseconds to show the highlight (100-5000ms, default: 200)

Usage

Default Copy Highlighting

  1. Select any text in the editor
  2. Press Ctrl+C (or Cmd+C on Mac) to copy
  3. The selected text will briefly highlight to confirm the copy operation

Custom Keyboard Shortcuts

You can configure any keyboard shortcut to trigger the highlight effect:

  1. Open VS Code Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
  2. Type "Preferences: Open Keyboard Shortcuts (JSON)"
  3. Add your custom keybinding:
{
    "key": "ctrl+shift+i",
    "command": "copyHighlight.highlight",
    "when": "editorTextFocus"
}

Replace ctrl+shift+i with your preferred key combination. Now you can highlight selected text anytime without copying!

Configuration

Appearance Settings

You can customize the highlight appearance by modifying these settings in your VS Code settings:

{
    "copyHighlight.backgroundColor": "#00ff00",
    "copyHighlight.transparency": 0.5,
    "copyHighlight.duration": 300
}

Custom Keyboard Shortcuts

Configure your own shortcuts to trigger highlighting without copying:

Method 1: Via Command Palette

  1. Open Command Palette (Ctrl+Shift+P)
  2. Type "Preferences: Open Keyboard Shortcuts"
  3. Search for "copyHighlight.highlight"
  4. Click the "+" icon to add a new keybinding

Method 2: Via JSON Configuration

  1. Open Command Palette and select "Preferences: Open Keyboard Shortcuts (JSON)"
  2. Add your custom keybinding:
[
    {
        "key": "ctrl+alt+h",
        "command": "copyHighlight.highlight",
        "when": "editorTextFocus"
    },
    {
        "key": "f9",
        "command": "copyHighlight.highlight",
        "when": "editorTextFocus"
    }
]

Choose any key combination that works best for your workflow!

Known Issues and Repo

Repository and code for extension can be seen here Repo

Please report any issues on Known Issue

Release Notes

1.0.1

  • Enhanced configuration options
  • Better error handling

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft