首页 > 解决方案 > 如何在 Vs 代码中更改源代码控制的背景?

问题描述

我使用一个深色专业主题作为我的默认 VS Code 颜色主题。在那,我得到源代码控制背景作为现有和过去更改的浅绿色和深红色。我想更改settings.json. 我怎样才能做到这一点?

在此处输入图像描述

标签: visual-studio-codevscode-settings

解决方案


diffEditor我们可以通过修改工作台配置中的属性来实现源代码控制的后台更改settings.json

"workbench.colorCustomizations": {
    "diffEditor.insertedTextBackground": "#045e13c7",
    "diffEditor.removedTextBackground": "#750a2ac0"
  }

推荐阅读