【问题标题】:Can I get character highlighting in VS Code difftool mode?我可以在 VS Code difftool 模式下突出显示字符吗?
【发布时间】:2020-09-23 02:21:13
【问题描述】:

当 VS Code 用作 diff 工具时,例如使用git difftool,它以红色和绿色显示更改的线条。有没有办法突出显示更改的字符(除了或代替线条),以便它们更加突出?

【问题讨论】:

    标签: visual-studio-code difftool


    【解决方案1】:

    VS Code git diff 实际上确实有字符突出显示。它只是非常微妙,因此可能不会引起注意。

    您可以修改差异颜色设置以找到允许更多对比度的设置。确保颜色指定了 alpha 通道,否则将不起作用。

    settings.json

        "workbench.colorCustomizations": {
            "diffEditor.insertedTextBackground": "#00bb0044",
            "diffEditor.removedTextBackground": "#ff000044",
        },
    

    欲了解更多信息,请参阅How to change diff color Visual Studio Code

    【讨论】:

      猜你喜欢
      • 2022-11-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-16
      • 2010-12-10
      • 1970-01-01
      • 2018-12-22
      • 2018-02-14
      相关资源
      最近更新 更多