最近這段時間,每次在家裏辦公,一用Macbp打開VSCode,風扇就狂轉,鍵盤還很燙!心疼我的mac兩秒鐘。。。
在網上也找了很多解決辦法,但都是沒有效果。。。逼得我只能用HBuilderX!
But!!!HX對React的支持,一言難盡啊。。。敲代碼效率很差,嚶嚶嚶!
好在最後終於解決了呢!
上配置:在VSCode 的settings.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": {
"**/**": true,
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/tmp/**": true,
"**/bower_components/**": true,
"**/dist/**": true
},
"search.followSymlinks": false
以上,世界終於安靜了!