Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Clipboard access through Extensions API #4972
Some event handlers should be useful, too, like:
Steps for the extension:
Closing as duplicate of #217.
We don't plan to implement that in VS Code but advise to use a node module like https://github.com/xavi-/node-copy-paste. This is to reduce complexity in the VS Code API because otherwise we have to handle/describe all sorts of clipboard data (think of images and other binary data).
referenced this issue
May 31, 2016
@jrieken the node-copy-paste module only copies text. This will not work for images. I am attempting to create a markdown extension that will allow the user to copy an image to their clipboard and paste it into their markdown document. When the paste occurs, the extension will save the image to an appropriately named folder and insert the text to display the image when the markdown is compiled. I know this is a closed ticket, but most tickets I have seen in regards to copy/paste reference back to this one.
@brianwhited I want to create a extension to paste image to markdown too!
But I found there is a useful function in Electron API:
But not like Atom,VSCode can't access to Electron API,see #3011
So, how to do ?