Sorry, we don't support your browser.  Install a modern browser

Copy Button for Code Block#15

Add a copy button to easily copy contents of the code block in the text editor.

2 years ago
Merged Copy Button for Code Block#172
a year ago
Changed the status to
Under consideration
a year ago

+1 this would be very useful, also to make a bit more efficient could have a hotkey such as CTRL to invoke this.

Current behaviour inside a code block is if you double click a line of code (in a single line code block or multi-line) it selects the word you have double clicked on.

Suggestion is to have the CTRL key modify this behaviour, so that if you press CTRL and then double click inside a code block, it highlights the entire line of code.

Then the user can simply press the hotkey for copy.

This would allow also for easy line deletion, as the user could just hit delete instead of copy once the entire line was selected.

a year ago

update: just realised if you insert cursor at start of a line on Mac, “SHIFT + Down-Arrow” selects entire line - so in that case I think the button next to the line of code would be better and straight to copy to clipboard like original suggestion instead of highlight line.

Then CTRL could modify the button behaviour. By default if you press the button it copies the line next to the button. But if you press CTRL and press the button it copies the entire code block.

a year ago