cweijan / vscode-office

让VSCode支持预览PDF,Exce和Word等格式, 并增加markdown所见即所得编辑器
MIT License
1.05k stars 97 forks source link

Support pasting images when using VS Code with WSL #309

Open RazvanModex opened 5 months ago

RazvanModex commented 5 months ago

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 commented 5 months ago

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.