Feature Request] Add a "Copy to Clipboard" button to code blocks

Hello,

I would like to suggest the addition of a "Copy" button in the top-right corner of code blocks in the rendered view.

Currently, copying a snippet of code requires manual selection, which can be tedious and imprecise, especially for long blocks of code or when using a mouse on a small screen.

Many other Markdown-based tools (like Obsidian, Notion, or GitHub itself) already implement this feature, and it greatly improves the user experience for developers and technical note-takers.

Thank you for your hard work on this amazing app!

Best regards.


Version Française

Demande de fonctionnalité Ajout d'un bouton "Copier" pour les blocs de code

Bonjour,

Je souhaiterais suggérer l'ajout d'un bouton "Copier" situé en haut à droite des blocs de code dans la vue rendue.

Actuellement, pour copier un morceau de code, il faut le sélectionner manuellement, ce qui peut être fastidieux et imprécis, surtout pour les longs blocs ou lors d'une utilisation sur petit écran.

De nombreux autres outils basés sur le Markdown (comme Obsidian, Notion ou GitHub) proposent déjà cette fonctionnalité, ce qui améliore grandement l'expérience utilisateur pour ceux qui prennent des notes techniques.

Merci pour tout votre travail sur cette application fantastique !

Cordialement.

@WillonJop welcome to the forum.

Have a look at the plugin Copy Code Blocks. I have not used it myself but it appears to do what you ask.

@WillonJop

Hi,

I just loaded the extension for code block copy and it works as advertised.