问题描述
我下载了 Visual Studio Code 以在工作中试用,我几乎爱上了它的所有内容.不过我不喜欢的部分是:Git 集成.
I downloaded Visual Studio Code to try out at work and I'm in love with almost everything about it. One part I am not in love with though: Git integration.
我导入了我的整个工作文件夹(约 14000 个源文件 + git 项目),Visual Studio Code 中的布局和所有内容都很棒.我从我们传统的代码编辑器转向了这个,因为它似乎对我来说效果更好.
I imported my entire working folder (~14000 source files + git items), and the layout and everything within Visual Studio Code is awesome. I moved from our traditional code editor to this, because it seemed to work a lot better for me.
不过,我的主要问题是,如果我正在处理一个文件并保存它,Visual Studio Code 会冻结大约 30-60 秒.起初我很困惑,但后来我注意到 Git 选项卡正在工作".根据我的最佳猜测,在我保存文件后,它会遍历所有 ~14000 个文件并执行某些操作 - 我不确定是什么.有谁知道是否有办法从 VSC 中删除 Git 集成,或者至少让它忽略它认为它在做什么?
My main issue though, is if I am working in a file and save it, Visual Studio Code freezes up for roughly 30-60 seconds. At first I was confused, but then I noticed that the Git tab was "working." From my best guess, after I save a file it is traversing all ~14000 files and doing something - I'm not sure what.Does anyone know if there is a way to remove Git integration from VSC, or at least have it ignore doing whatever it thinks it is doing?
推荐答案
将此添加到 settings.json
:
// Whether git is enabled.
"git.enabled": false,
其他一些与 Git 执行相关的命令:
Some other commands related to Git execution:
// Path and filename of the git executable, e.g. `C:Program FilesGitingit.exe` (Windows).
"git.path": null,
// When enabled, commits will automatically be fetched from the default remote of the current Git repository.
"git.autofetch": false,
这篇关于从 VSCode 中删除 git 集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!