Extension Paste Image is not working #25902
-
Hi there, I got an error when I tried to paste an image to VSCode Reproduce steps
Actual behavior
Expected behaviorCreate image file and paste their path to file on the current editor, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
This extension looks like it’s using a command line tool to deal with the clipboard (specifically xclip). The problem with that is that it will not execute in the browser, and therefore not see the clipboard. The extension would need to be modified to use out-of-box clipboard APIs with VS Code (if possible). Would you mind opening an issue with the extension author? You can refer them to the guide here: https://code.visualstudio.com/api/advanced-topics/remote-extensions#using-the-clipboard |
Beta Was this translation helpful? Give feedback.
-
Hi @Chuxel ! |
Beta Was this translation helpful? Give feedback.
-
Thank you for the information. I solve my error. |
Beta Was this translation helpful? Give feedback.
-
Visual Studio Code's API does provide access to the local clipboard; however, it only supports text content, not images. https://marketplace.visualstudio.com/items?itemName=watahani.markdown-image-paste-for-remote |
Beta Was this translation helpful? Give feedback.
This extension looks like it’s using a command line tool to deal with the clipboard (specifically xclip). The problem with that is that it will not execute in the browser, and therefore not see the clipboard. The extension would need to be modified to use out-of-box clipboard APIs with VS Code (if possible). Would you mind opening an issue with the extension author? You can refer them to the guide here: https://code.visualstudio.com/api/advanced-topics/remote-extensions#using-the-clipboard