DEV Community

Nguyen Dinh Khai
Nguyen Dinh Khai

Posted on

Fix Code helper plugin(visual studio code) leak memory Macbook

When you work with VSC for a long time, it will consume a lot of RAM, hindering your work process and making your computer sluggish.
Here's how you can address that:

  1. Open svcode

Image description

  1. Press the keyboard shortcut Command + Shift + Dand select Preferences: Open user settings (JSON)

Image description

3.Add extra setting in 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": {
        "**/.git/objects/**": true,
        "**/.git/subtree-cache/**": true,
        "**/node_modules/**": true,
        "**/tmp/**": true,
        "**/bower_components/**": true,
        "**/dist/**": true
    }
}


Enter fullscreen mode Exit fullscreen mode
  1. Restart the vs code

Image description

It reduces from 1.2 GB to 100 MB of RAM. Sounds great!

Top comments (0)