Add copy button to code snippets #3768
Replies: 2 comments
-
|
Hey @Complexlity, thanks for the suggestion. I can see something like being useful for installation snippets, we tell learners to copy and paste those anyway to avoid issues. But I don't think we should enable this for code examples. From a learning perspective, theres a lot to be gained from manually typing code examples out:
I'd definitely like more opinions on this though. |
Beta Was this translation helpful? Give feedback.
-
|
If anything, the text highlight should be turned off so that nobody can copy and paste. One thing that new developers don't realize is the huge benefit to typing out your code. Especially in the age of AI, people get so reliant on copy and paste that when asked to type any code it becomes harder to draw it from memory without putting in the reps of typing out your code. I'm not saying absolutely no copy and pasting allowed but beginner devs should definitely be getting as much code typing time as possible. 👽 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Complete the following REQUIRED checkboxes:
brief description of requestformat, e.g.Add dark mode to websiteThe following checkbox is OPTIONAL:
1. Description of the Feature Request:
Similar to the universal style to coding blocks, I would be an improvement if there's a copy button on code blocks to easily get the entire code without having to highlight it all (especially for long code blocks)
2. Acceptance Criteria:
-[x] A simple copy code button
3. Additional Information:
An example of it
Beta Was this translation helpful? Give feedback.
All reactions