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:
- Open svcode
- Press the keyboard shortcut
Command + Shift + D
and selectPreferences: Open user settings (JSON)
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
}
}
- Restart the vs code
It reduces from 1.2 GB to 100 MB of RAM. Sounds great!
Top comments (0)