hediet / vscode-drawio

This unofficial extension integrates Draw.io (also known as diagrams.net) into VS Code.
https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio
GNU General Public License v3.0
9.02k stars 406 forks source link

support image pasting #309

Open rfhits opened 2 years ago

rfhits commented 2 years ago

I can drag an image into a file, but I can't use "paste here" to paste an image.

I hope "paste an image from clipboard" can be supported

https://user-images.githubusercontent.com/70683664/160044949-fe73d8a1-fc57-4508-96ce-1d65c7289db2.mp4

.

davea38 commented 1 year ago

I have this problem.

My solution was to copy / paste the image into a paint program (Paint.net for example), then Ctrl - A, Ctrl - C in the paint program.

Then you switch back to VSCode, left click the background of the drawio diagram then Ctrl - V and it should work.

Sometimes takes a couple of goes but it definitely works.