Do not hide the copy button when I am writing in the code block

Currently, you always have to leave a code block to be able to copy it. Is there any way to make the button permanent? I haven’t been able to find a working snippet for this yet.

Example: