为什么 VS Code 需要这么多内存?我怎样才能让它以更高的内存效率运行? [英] Why does VS Code require so much memory? How can I make it run more memory-efficiently?

查看:60
本文介绍了为什么 VS Code 需要这么多内存?我怎样才能让它以更高的内存效率运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何让 VS Code 使用更少的内存?

打开大约 8 个文件需要超过 2GB,有时超过 3GB.

解决方案

我在 VS 代码团队.

内存使用率高有很多可能的原因.我们将工具和

此外,即使您只打开了 8 个文件,您的工作区似乎也比这 8 个文件大很多.提供智能感知和其他高级编辑器功能通常还需要处理许多未打开的文件.如果不了解您正在使用哪些扩展以及您的工作区包含哪些内容,就很难说 2-3GB 是否合理.

我建议您同时阅读我们的其余性能问题指南.它解释了如何报告性能问题和进一步调查性能问题.

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.

解决方案

I'm on the VS code team.

There are many possible causes for high memory usage. We've put together tools and a guide that can help you investigate potential performance issues.

Start by using the process explorer. The process explorer shows the cpu and memory usage per child process of VS Code. Open it with the Open process explorer command. The process explorer should help you track down which processes are using the most memory. Often times, an extension will turn out to be the root cause

Also, even though you have only opened eight files, your workspace seems to be quite a bit larger than just those eight. Providing intellisense and other advanced editor features often requires processing many unopened files as well. Whether or not the 2-3gb is justified or not is hard to say without understanding what extensions you are using and what your workspace contains.

I recommend that you also take a look through the rest of our performance issue guide. It explains how to report performance issues and further investigate performance problems.

这篇关于为什么 VS Code 需要这么多内存?我怎样才能让它以更高的内存效率运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆