Why does VS Code require so much memory? How can I make it run more memory-efficiently?

后端 未结 5 2031
旧时难觅i
旧时难觅i 2020-12-13 17:29

Does anyone know how to make VS Code use less memory?

It´s taking more than 2gb, sometimes more than 3 gigabytes to have some 8 files opened.

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 17:44

    You could prevent vscode from watching folders with really many files in you project by adding this to your json settings file

    "files.watcherExclude": {
        "**/.git/objects/**": true,
        "**/node_modules/**": true
    } 
    

提交回复
热议问题