如何解决 Mac 版 VS Code CPU 占用严重的问题?
最近 mac 在用 vs code 编辑器的时候 cpu 占用奇高,搞得 mac 风扇狂转,cpu 温度迅速上升。上网搜索一番,得出下面2个解决方案:
file exclude 和 watch exclude
 "files.exclude": {
        "**/.git": true,
        "**/.svn": true,
        "**/.hg": true,
        "**/CVS": true,
        "**/.DS_Store": true,
        "**/tmp": true,
        "**/node_modules": true,
        "**/bower_components": true,
        "**/dist": true
    },
    "files.watcherExclude": {
        "**/.git/objects/**": true,
        "**/.git/subtree-cache/**": true,
        "**/node_modules/**": true,
        "**/tmp/**": true,
        "**/bower_components/**": true,
        "**/dist/**": true
    }followSymlinks 设置为 false
vscode 设置 - followSymlinks - 设置为false, 即可解决!
"search.followSymlinks": false
以上2个方案我都试了。最终解决了 cpu 占用严重的问题。到底是哪个方案起的效果,不太好复现和评估。