Google Chrome extension to copy code blocks from any website with a single click.
- Clone or download this repository to your computer.
- Open
chrome://extensions
in Google Chrome. - Enable Developer Mode using the toggle in the top-right corner.
- Click Load unpacked and select the directory where you downloaded the project.
Press Alt+C
to enable or disable copying. A toast will indicate the current state.
The extension remembers your choice for future pages.
You can choose how code is copied from the extension options page. Available options are:
- dblclick – copy when you double click a code block (default)
- hover – copy when you hover over a code block
- both – allow both interactions
The extension shows a toast when you copy code or toggle the shortcut. You can customize the toast colors from the options page.
- light – light background with dark text
- dark – purple background with light text (default)
- custom – choose your own background and text colors