介绍
最近在 VSCode 使用一段时间后, Mac 电脑总会发出 CPU 占用过高的嗡嗡声,打开进程监视器发现是一个叫做 Code Helper 的进程出了问题。

解决方法
在 VSCode 的 setting.json 文件中加入如下配置,然后完全退出并重启软件。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| "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 }
|