Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JSoon/1c2d9deec6bce1c19af91ed098319ed7 to your computer and use it in GitHub Desktop.
Save JSoon/1c2d9deec6bce1c19af91ed098319ed7 to your computer and use it in GitHub Desktop.
VSCode Reduce CPU Usage

VSCode Reduce CPU Usage

Update your settings.json with the code below, then restart vscode:

{
    "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
    },
    "search.exclude": {
        "**/node_modules/**": true,
        "**/bower_components": true,
        "**/dist/**": true,
        "**/tmp/**": true,
        "**/.git/objects/**": true,
        "**/.git/subtree-cache/**": true
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment