Visual Studio Code common problem handling and common settings

The VScode process takes up too much CPU resources, causing the system to respond slowly

  • Recently, I discovered a problem when using the remoteSSH function of VS Code. The response of the connected remote machine suddenly became very slow.
    Use the top command to find that there is a rg process with a particularly high occupation
    insert image description here

After ps -ef | grep rgchecking with the command, it is found that it is a process started by VS Code

  • Solution:
    1. Open the settings of VS Code, enter in the search box Search: Follow Symlinksuncheck here
    to cancel the check here, save, and restart VS Code
    2. Open settings.jsonthe input of VS Code "search.followSymlinks": false, save and restart, and the problem can be solved

Guess you like

Origin blog.csdn.net/weixin_49855330/article/details/129497230