Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mguellsegarra/highlight-on-copy
⚡️📋 VSCode extension to briefly flash and highlight the selected text that has been copied
https://github.com/mguellsegarra/highlight-on-copy
clipboard-tool hacktoberfest vscode vscode-extension yank
Last synced: about 2 months ago
JSON representation
⚡️📋 VSCode extension to briefly flash and highlight the selected text that has been copied
- Host: GitHub
- URL: https://github.com/mguellsegarra/highlight-on-copy
- Owner: mguellsegarra
- License: mit
- Created: 2024-04-28T16:08:30.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-03T10:16:14.000Z (8 months ago)
- Last Synced: 2024-05-04T14:20:41.174Z (8 months ago)
- Topics: clipboard-tool, hacktoberfest, vscode, vscode-extension, yank
- Language: TypeScript
- Homepage:
- Size: 666 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Highlight on Copy⚡️📋 Briefly flash and highlight the selected text that has been copied
This is a **VSCode extension** inspired by the [Vim](https://www.vim.org/) plugin **[vim-highlightedyank](https://github.com/machakann/vim-highlightedyank)**
and the
**[Neovim](https://github.com/neovim/neovim) built-in [highlight yanked region feature](https://github.com/neovim/neovim/pull/12279)**.## Configuration 🛠️
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`:
1. Open **Command Palette**.
2. On Windows and Linux, press `Ctrl + Shift + P`. On macOS, press `Cmd + Shift + P`.
3. Search for `Open Keyboard Shortcuts` and 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`:
1. Open **Command Palette**.
2. On Windows and Linux, press `Ctrl + Shift + P`. On macOS, press `Cmd + Shift + P`.
3. Search for `Open User Settings (JSON)` and select it from the list. This command takes you directly to the `settings.json` file where all your settings are defined.
4. You can now add your custom settings for the extension. Add the following and adjust them to your liking.:```jsonc
{
"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
}
```## License 📄
This project is licensed under the [**MIT License**](https://github.com/mguellsegarra/highlight-on-copy/blob/main/LICENSE).
## Author 🙋🏽♂️
I'm Marc Güell Segarra, a freelance software developer at [Ondori.dev](https://ondori.dev).
## Buy Me a Coffee ☕
If you found this extension useful, consider **[buying me a coffee](https://buymeacoffee.com/mguellsegarra)!**