DEV Community

Nguyen Dinh Khai
Nguyen Dinh Khai

Posted on

15

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!

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more