vscode-office icon indicating copy to clipboard operation
vscode-office copied to clipboard

Support pasting images when using VS Code with WSL

Open RazvanModex opened this issue 2 years ago • 3 comments

Congratulations for making this extension. This makes Markdown a lot more powerful and productive.

Feature description

The paste image from clipboard is amazing, however it does not work when using VS Code with WSL. The problematic behavior from Office Viewer is similar to that from this other extension and it has been fixed. Please implement this fix in Office Viewer as well. I am using Windows 10.

Context details

I am using VS Code to update the Git repo behind GitHub Wiki pages. Some document names have unsupported characters for naming Windows files so I had to move to WSL to see all the files. However, this breaks the paste image from Windows clipboard.

Self assignment

Is there a guideline on how to contribute to this project? I would like to work on this feature.

RazvanModex avatar Apr 23 '24 22:04 RazvanModex

The extension that solves the problem only works for Markdown editor. In addition, Office Viewer grabs the paste system event instead of that extension. However, that extension also has CTRL + ALT + V as pasting command that Office Viewer does not grab, but it can only be used withing the built-in Markdown editor.

RazvanModex avatar Apr 24 '24 00:04 RazvanModex

I second this request, as I'm unable to paste an image into a markdown document when using the WSL Remote Extension.

MallocArray avatar Oct 17 '24 16:10 MallocArray

request this feature +1


This will really helps writers/coders, I uses windows+vscode+vscode-office extension. This feature if supported, then copy/paste images will be very convient for us.

Please consider supporting it.

hitzhangjie avatar Nov 06 '25 22:11 hitzhangjie