llamacoder icon indicating copy to clipboard operation
llamacoder copied to clipboard

Add Copy Code Functionality to Code Editor

Open meet306 opened this issue 1 year ago • 3 comments

The current code editor in the Llama Coder application does not include a "Copy Code" button, which makes it difficult for users to quickly copy the generated code. This feature would significantly improve usability.

Proposed Solution: Introduce a "Copy Code" button to the UI that allows users to copy the generated code using the navigator.clipboard API.

Steps to Reproduce:

Open the Llama Coder code editor. Generate some code using the editor. Observe that there’s no option to copy the generated code directly. Additional Context: This feature aligns with the roadmap item for improving best practices in the editor interface.

meet306 avatar Dec 23 '24 03:12 meet306

I'd like to work on this issue. Could you assign it to me if that's okay?

meet306 avatar Dec 23 '24 03:12 meet306

Hey @meet306, I added the copy code button, it was a pretty easy fix

https://github.com/user-attachments/assets/0bf649e1-8cdc-4ec7-908d-ba148816e4a9

subhraneel2005 avatar Dec 25 '24 18:12 subhraneel2005

@subhraneel2005 Did you do that on a local copy? The live version looks different and I'm confused. I'd like to copy a project to Codesandbox, or Replit, Vercel, etc.

KevanMacGee avatar Jan 22 '25 03:01 KevanMacGee

we now added this!

riccardogiorato avatar Sep 08 '25 11:09 riccardogiorato