VSCode Extension Clipboard Images - visual-studio-code

I'm trying to learn VSCode Extension development, I found that VSCode Extension doesn't seem to provide the function of Clipboard Read
https://github.com/microsoft/vscode/blob/9a21b536639c2d986c50fb51b7da67bafdb50c9b/src/vs/vscode.d.ts#L8292-L8308
Because I want to try to implement the Extension for pasting and uploading pictures in VSCode
What should I do if I want to paste and upload pictures stored in Clipboard?

Related

Flutter web get files from ClipBoard

I want to copy files or content from the ClipBoard on Flutter web, I have tried all available packages and plugins but no things is working.
I need this because we have lot of files and images that users do with CTRl+V and we want to do it fast instead each time using filePicker, really fast and safe time if there a way to do it.

Visual Studio Code, how to make local file link open default program

VS Code text editor highlights and allows to follow links, this includes local file URLs:
Ctrl+click opens the file in a new editor tab:
Is it possible to configure VS Code is some way to open the file in default program instead upon ctrl+click / follow link? (e.g. html file in web browser, mp3 in media player etc.)
Any setting, extension or different text markdown will do.
I don't think there is a default way in vscode to set open a file with default program.
However, there are extensions to deal with it. For example: Open in Application

How to invoke a VS code extension by clicking on file?

I have the vscode-pdf extension installed which let's me directly view pdf files in VS code. Is there any possibility to open pdf files directly with the said extension by just clicking on the file?
The current behaviour when clicking on a pdf file is the following message:
The file is not displayed in the editor because it is either binary or uses an unsupported text encoding. Do you want to open it anyway?
Edit: I use VS Code version 1.40.2 1.60.0
Edit2: The feature mentioned in the answer to this question now seems to be integrated. Any update on this?
Not as of VS Code 1.41
However this is a good potential use case for the proposed custom editor api

Visual Studio Code image preview of markdown file

While using prose.io to edit my markdown files, an image can be referenced using the following syntax:
![text]({{site.baseurl}}/images/myimage.png)
This works fine on Prose preview and also after document is published.
Now I want to start using Visual Studio Code, but it does not properly preview images using this syntax.
How can I make it work?
Thanks to #Waylan insight, I tried using this syntax, that seems to be the starndard Markdown:
![text](../images/myimage.png)
images folder is in the same level as posts folder, where markdown files are located.
This made Visual Studio Code properly preview images. I was also able to properly preview images on prose.io (it seems it also accepts standard Markdown).

how do i download from github instead of just copy pasting?

I go to a file with for example a .txt extension and there is no button to download, i have no option but to highlight and paste. This is ridiculous, how do i download such files from github? This system is so damn stupid.
Click the Raw Link for the file, then (depending on your browser configuration) it will either prompt you to download the file, or it will just show the raw file in the browser and you can save it with File -> Save As or whatever the equivalent is in your browser.
GitHub Mate is the right tool to do, it's a Chrome extension currently. I felt painful as you, so I created this extension.
It's open source here https://github.com/camsong/chrome-github-mate.