Hi,
I noticed that the copy code block button is now at the top of the code block.
For as long as I can remember, its always been at the bottom.
The bottom makes sense as,
you read from the top to the bottom of the output
ai studio autoscrolls to the bottom, so if you just want to copy the block, then its far more accessible.
Scrolling all the way back to the top to just copy the code block is a pain in the backside.
An alternative would be to have an option in this drop down to ‘copy code blocks’.
But then this would copy all code blocks, while you may only want one of them, as other blocks might just be a snippet.
An even better option might be to have a (transparent) button hover over the code block that you want to copy. You see this option also with a lot of image downloads. This would keep the button visible while you hover anywhere over the code, to the top-right of the visible part of the code block.
Thank you for your feedback. We understand your perspective that the “Copy Code Block” button should be more prominent. We will forward your suggestion to the relevant team.
No problem!
I’ve been using AIStudio frequently since Feb. I only found this forum to post this opinion. But I think I’ll hang around, looks like a good resource/community.
Cheers
On long code block posts, the “Run” button is typically done and back to read mode before the code block has finished printing. Since you have your button at the top, you hit it there and end up with incomplete code (ask me how I know )
So, at the bottom like before or both top and bottom if the code printing action is synched to the run button.
Since I’m here, there’s quite a few instances of code bleeding outside the blocks. Not sure if it’s the web app, browser (Firefox in my case), or Gemini being too quick. A “please resend block” usually solves it on the next try.
Quick update: guys, that floating block code copy (and other functions) feature you added is the killer, thank you! I appreciate how you’re keeping the “rerun” and block copy floating menus from clashing with each other - super smart. Well done!!