Recently, I am using vuepress to make my own blog. I usually write code in IDEA except for Java, and other languages are written in vscode. I saw on the Internet that it is possible to quickly add pictures through plug-ins, so I found it in the plug-in library. Next, there are two popular plug-ins, Markdown Image and Paste Image, because Markdown Image ranks first (although the download volume is not as high as Paste Image), so Markdown Image is installed first, but follow the instructions, no matter what I can't paste it, and pressing the Shift + Alt + V shortcut keys has no response at all.
After various attempts, I found that vscode cannot directly copy and paste files with Ctrl + C and Ctrl + V from the windows explorer. It must be copied and pasted by dragging and dropping. I asked ChatGPT specifically, and it actually told me that vscode supports copying and pasting with Ctrl + C and Ctrl + V, and that my vscode has no permissions. After all kinds of tossing, I finally found a more reasonable answer. The copy and paste of vscode can only be operated in the same workplace, and cannot be copied and pasted with the operating system.
Since Markdown Image is not available, we can only try to install Paste Image. After installation, press Ctrl + Alt + V shortcut keys, and it prompts There is not a image in clipboard.
, still can't paste the picture, but it is better than Markdown Image, at least there is a prompt message.
Then it was tossing again. This time, instead of copying the picture file directly, it was successful by taking a screenshot, but the file was saved to the current directory of the md file, and the date and time were used as the file name, which is not very friendly. Finally, the following plug-in configuration is modified, and the image file is saved to the assets\MD file name
directory.