Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Copy Code Functionality to Code Editor #53

Open
meet306 opened this issue Dec 23, 2024 · 2 comments
Open

Add Copy Code Functionality to Code Editor #53

meet306 opened this issue Dec 23, 2024 · 2 comments

Comments

@meet306
Copy link

meet306 commented Dec 23, 2024

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
Copy link
Author

meet306 commented Dec 23, 2024

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

@subhraneel2005
Copy link

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

2024-12-26.00-20-02.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants