Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode 忽略指定文件夹避免 cpu 暴涨 #61

Open
hawtim opened this issue Feb 10, 2021 · 1 comment
Open

vscode 忽略指定文件夹避免 cpu 暴涨 #61

hawtim opened this issue Feb 10, 2021 · 1 comment

Comments

@hawtim
Copy link
Owner

hawtim commented Feb 10, 2021

背景

最近折腾 ohmyzsh 需要调整 ~ 目录下的配置,经常一个 code . 打开 vscode 直接打开整个目录,发现 cpu 使用率立马上升到 96% 岿然不动。OK 那我就忽略掉一些文件夹吧~

创建 workspace settings

参考以下配置,一些比较通用的我取出来了,一些自定义的需要自己加上。

// Place your settings in this file to overwrite default and user settings.
{
  "files.exclude": {
    ".nvm": true,
    ".npm": true,
    ".node-gyp": true,
    "flutter": true,
    "Applications": true,
    "Pictures": true,
    "Music": true,
    "Movies": true,
    "Public": true,
    "Downloads": true,
    "Documents": true,
    "Library": true,
  },
  "search.exclude": {
    ".nvm": true,
    ".npm": true,
    ".node-gyp": true,
    "flutter": true,
    "Applications": true,
    "Pictures": true,
    "Music": true,
    "Movies": true,
    "Public": true,
    "Downloads": true,
    "Documents": true,
    "Library": true,
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant