Add a "Quick Copy" button for code blocks in the mobile view #192007
Replies: 1 comment 1 reply
-
|
This is a well-observed usability gap, and I agree that the current experience on mobile is not very efficient. On desktop, copying code is straightforward due to built-in copy buttons and precise cursor control. On mobile, however, the reliance on long-press selection introduces several issues:
A “Quick Copy” button for code blocks would significantly improve this. Even a minimal implementation could provide:
This would align the mobile experience more closely with desktop and reduce friction for developers who rely on mobile for quick reviews or reference. As a workaround today, users often resort to:
None of these are ideal, which reinforces your point that this is worth addressing at the product level. Overall, this is a small feature with a high usability impact, particularly for mobile-first or on-the-go usage scenarios. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Product Feedback
💬 Feature/Topic Area
Android
Body
Currently, when viewing files or PRs on the GitHub Mobile app/web, copying a specific line or a block of code is a bit clunky—you have to long-press and manually select the text, which often grabs line numbers by mistake.
Beta Was this translation helpful? Give feedback.
All reactions