我看了 GitHub - mushanshitiancai/vscode-paste-image: paste image from clipboard to markdown/asciidoc directly! 的代码。实际上vscode插件的作者文档没有abo-abo写的全。都要在Linux下安装xclip。 VSCode插件 Paste Image - Visual Studio Marketplace 一个字都不提。abo-abo上来罗列了一大堆命令行工具。
VSCode插件作者技术路线比较讨巧,Windows下用Powershell,macOS下用applescript,保证这两个操作系统开箱即用就行了。如我这样的Windows 7用户只能自求多福了。