如何在 Vs 代码中更改源代码管理的背景?

问题描述

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

enter image description here

解决方法

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

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