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

Nguyen Dinh Khai @dinhkhai0201

About: I’m Khai. I’m a web, mobile and blockchain developer living in Da Nang, Vietnam. I am a fan of technology, programming, and writing. I’m also interested in sports and photography.

Location:
Viet Nam
Joined:
Feb 24, 2024

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

Publish Date: Apr 2 '24
15 0

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!

Comments 0 total

    Add comment