前端集合 - 关注前端技术和互联网免费资源

关注前端技术和互联网免费资源

分类儿

页面儿

搜索儿

前端集合 RSS订阅
Home » 经验记录 » 如何解决 Mac 版 VS Code CPU 占用严重的问题?

如何解决 Mac 版 VS Code CPU 占用严重的问题?

发布者:前端集合 // 发布时间:2019-11-19 22:22:00 // 分类:经验记录 // 访问: 5,367 次 // 热度:

最近 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 占用严重的问题。到底是哪个方案起的效果,不太好复现和评估。

Tags: mac, VS Code, cpu 占用

又到2019年年底了>>  << Node.js Nginx 配置之:如何从 http 定向到 https,从没有 www 定向到 www?
Top