问题描述
我下载了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 Files\Git\bin\git.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集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!