最新消息:看到那些跳动的图片、文字了吗?点击点击 O(∩_∩)O~~

Visual Studio Code 的 Code Helper 占用 CPU 过高

开发工具 onlyling 10587浏览

最近一段时间使用 Visual Studio Code,有时候会莫名其妙的发热量巨大,然后风扇高转不下。

打开 Mac OS 的活动监视器,发现 Code Helper 占用 CPU 极高(比起 Chrome 的 Helper 好多了),就算关闭了 Visual Studio Code 它也在后台活动,只有手动 kill 它了。

搜了一下发现Code Helper high CPU usage on MacBook Pro 15不止我一个人遇见了,目前觉得方法就是在首选项设置有加入

"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
}

使用以后感觉良好,目前没有发现莫名其妙的发热。

转载请注明:OnlyLing - Web 前端开发者 » Visual Studio Code 的 Code Helper 占用 CPU 过高