⚡️📋 Briefly flash and highlight the selected text that has been copied
This is a VSCode extension inspired by the Vim plugin vim-highlightedyank and the Neovim built-in highlight yanked region feature.
The extension works out of the box when triggering your default copy to clipboard shortcut (Ctrl + C, Cmd + C).
If you wish to change the default keybinding, you can do it in your Keyboard Shortcuts:
- Open Command Palette.
- On Windows and Linux, press
Ctrl + Shift + P. On macOS, pressCmd + Shift + P. - Search for
Open Keyboard Shortcutsand search for the `highlightOnCopy.run" command and remap the shortcut to your needs.
Also, you can customize the color and the duration of the highlight with these entries in your settings.json:
- Open Command Palette.
- On Windows and Linux, press
Ctrl + Shift + P. On macOS, pressCmd + Shift + P. - Search for
Open User Settings (JSON)and select it from the list. This command takes you directly to thesettings.jsonfile where all your settings are defined. - You can now add your custom settings for the extension. Add the following and adjust them to your liking.:
This project is licensed under the MIT License.
I'm Marc Güell Segarra, a freelance software developer at Ondori.dev.
If you found this extension useful, consider buying me a coffee!

{ "highlightOnCopy.backgroundColor": "rgba(230, 97, 89, 0.7)", // by default the foreground text color it's undefined, meaning the actual color won't be modified "highlightOnCopy.foregroundColor": "#fff", "highlightOnCopy.timeout": 200 }