美文网首页
Mac VsCode CPU占用率高的问题

Mac VsCode CPU占用率高的问题

作者: 一杉风雨 | 来源:发表于2019-04-22 17:19 被阅读0次

VsCode 子进程Code Helper 有可能出现占用CPU过高的现象,可以通过修改setting.json来指定不扫描的文件类型来解决,参考https://segmentfault.com/q/1010000010415091

解决方案:在setting.json中添加以下配置。

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

相关文章

网友评论

      本文标题:Mac VsCode CPU占用率高的问题

      本文链接:https://www.haomeiwen.com/subject/badugqtx.html