Comments (10)
[This doesn't seem to work after further experimentation, it doesn't seem to actually save the created image]
I was able to get a fork of this extension, telesoho/vscode-markdown-paste-image, to work with the wsl remote development suite, by forcing the extension to run on the ui/windows side where it has access to the clipboard.
I did this by adding:
"remote.extensionKind": {
"telesoho.vscode-markdown-paste-image": ["ui"],
}
to settings.json.
Using:
"remote.extensionKind": {
"mushan.vscode-paste-image": ["ui"],
}
may fix your issue.
from vscode-paste-image.
Still not working here, with the Error There is not an image in clipboard
did you manage to paste images in remote vscode ?
from vscode-paste-image.
If my investigation is correct, the extension won't work on Visual Studio Code Remote Development mode. Because currently the extension use wrapper script to manage clipboard image on Remote OS, and the image we want to paste only exists in Local OS.
The potential solution metioned by @rhiswell will not help at this time. The Clipboard API Do sync the clipboard content from Local OS to Remote OS, but the API can only access text content.
There seems a clipboard API which will support arbitrary content type in the future, according to Expose Clipboard#read/write with data transfer · Issue #77790 · microsoft/vscode. Once the new API is ready and do support remote development mode, maybe we can change the implementation of this extension.
Disclaimer: I do not maintain this extension, just someone who also hope this feature come true. :D
from vscode-paste-image.
fix your issue.
https://marketplace.visualstudio.com/items?itemName=sakamoto66.vscode-paste-image
this extention access local clipbord when use Remote Development mode.
from vscode-paste-image.
I also have this problem when installing the extension to remote side. Here is the potential solution:
https://code.visualstudio.com/api/advanced-topics/remote-extensions#using-the-clipboard
from vscode-paste-image.
same problem, TAT
from vscode-paste-image.
@sakamoto66 Works for me in WSL! Thank you!
Note: I had to disable other extensions which also use the Ctrl+Alt+v
keybinding, in order for it to work. I thought it wasn't at first.
from vscode-paste-image.
@Ryanperson
feedback, thank you!
Note: I had to disable other extensions which also use the Ctrl+Alt+v keybinding, in order for it to work. I thought it wasn't at first.
That is the destiny of vscode.
You can find the measures here.
- Open Command Palet (Ctrl + Shift + P).
- Input "Open keyboard Shortcuts" on Command.
- Input "Ctrl Alt V" on filter.
- Disable keyboard shortcuts other than "Paste image of clipboard".
from vscode-paste-image.
fix your issue.
https://marketplace.visualstudio.com/items?itemName=sakamoto66.vscode-paste-image
this extention access local clipbord when use Remote Development mode.
Unfortunately, this seems to be kind of broken, since I cannot use variables like ${currentFileNameWithoutExt}
Therefore I cannot put the images in to folders that are created specifically with my current file name without extension by Hexo.
This is my current structure of source directory, I created the test file, then pasted an image
it just created directory named ${currentFileNameWithoutExt}
source/
├─ _posts
├── ${currentFileNameWithoutExt}
└── test.md
from vscode-paste-image.
I'm using MkDocs-Material and have Paste Image nicely configured when working just on my local machine and pushing to Github, but would love to have it working when in VS Code remote development mode - I had the same issue as @pduchnovsky when it came to filenames though, has anyone found a good workaround?
from vscode-paste-image.
Related Issues (20)
- Quick custom name image paste HOT 1
- I don't get how to use this...
- Export ipynb with the pictures
- customize ${imageSyntaxPrefix}
- How to get the default name to be YYYY-MM-DD_HH-mm-ss_<selected text>
- New line character support for pasteImage.insertPattern
- Could not find any matching file with following pattern: puppet/shared.pp
- encoding image file name HOT 6
- Unable to change the default name (using a format)
- Adjusting image size?
- Use on VSCode for the Web
- Windows paste image is not working on vscode insider, cannot generate image file, but work correctly on normal vscode
- Suggestion: When pasting non-image content, fall back to normal paste command
- Add 'Paste Image' to Context Menu to pick up the base path more easily HOT 1
- [Suggestion]: Add file summary md5 to the file name
- Settings do not apply. HOT 4
- There is not a image in clipboard & can't capture screenshots in markdown
- alt text feature
- If the image has spaces on it, the preview does not works
- Suggestion - file name encoding use dash instead of URL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-paste-image.