octref / polacode

📸 Polaroid for your code
https://marketplace.visualstudio.com/items?itemName=pnp.polacode
6.81k stars 184 forks source link

Support Copy image to Clipboard #174

Open isPoto opened 2 years ago

isPoto commented 2 years ago

I tried right-clicking on the preview screen to copy, but pasting found that it was just text

The logic is very strange. The extension itself requires the user to copy the code before the preview will be displayed.

So, my suggestion is to right click on the preview image and click copy, it is copy the preview image to facilitate the user to copy and paste the code snippet image without saving

Copy is a copy of the entire Polacode image image

ackvf commented 2 years ago

The thing you click on is not an image really, but I also find it strange that despite it being text, I cannot make adjustments to the code there and need to change the source code and copy/paste it again.

That said, I am also looking for a way to copy the image to clipboard instead of having to save it to a file. I don't even remember ever sending a real file to anyone actually, not even on twitter or email. I always use copy/paste.

ackvf commented 2 years ago

BTW @isPoto I would suggest to change the title to "Support Copy image to Clipboard".

isPoto commented 2 years ago

The thing you click on is not an image really, but I also find it strange that despite it being text, I cannot make adjustments to the code there and need to change the source code and copy/paste it again.

That said, I am also looking for a way to copy the image to clipboard instead of having to save it to a file. I don't even remember ever sending a real file to anyone actually, not even on twitter or email. I always use copy/paste.

Save it to the Temp folder of the system(windows 10/11), then wait for it to be written to the clipboard and then delete it or not (because the files in the Temp folder are temporary)