Skip to main content
Paste pictures when editing markdown in vscode

​​​​

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.


Mr.ChenAbout 1 minarticleVSCode
Solve the problem of vscode running stuck

​​​​

Recently, I am using vuepress to make my own blog. I opened vscode, which has been dusty for a long time, but found a problem. Every time I switch to other applications and then switch back to vscode, it will freeze for a few seconds, which greatly reduces the user experience.
I opened the task manager and looked at it, and found that the CPU usage reached 100%. At first I thought that the CPU of the laptop was too low, and I planned to see if my ThinkPad T480 could upgrade the CPU, but the Internet said that the CPU of the T480 is a blade design, and most people cannot replace it.
Then I googled the reason why vscode is slow. The first search result said that there were too many plug-ins installed, which caused the slowness, but this is not easy to troubleshoot.
Then look at the second search result, vscode running stuck solution, really solved the problem, the specific operation is as follows:


Mr.ChenLess than 1 minutearticleVSCode