Visual studio code 在diff viewer中更好地突出显示当前选择

Visual studio code 在diff viewer中更好地突出显示当前选择,visual-studio-code,diff,git-diff,git-difftool,Visual Studio Code,Diff,Git Diff,Git Difftool,我习惯于在提交任何内容之前检查所有更改。所以我主要是这样使用键盘的: 打开文件差异查看器 使用命令workbench.action.compareEditor.nextChange的快捷方式浏览所有更改(在我的例子中为Alt+Down) 不幸的是,当前“选定”的更改很难与所有其他更改区分开来,这使得此工作流有点麻烦: 我刚刚意识到,我可以通过更改editor.lineHighlightBackground或editor.lineHighlightBorder来定制它,但这将更改所有视图中当

我习惯于在提交任何内容之前检查所有更改。所以我主要是这样使用键盘的:

  • 打开文件差异查看器
  • 使用命令
    workbench.action.compareEditor.nextChange
    的快捷方式浏览所有更改(在我的例子中为Alt+Down)
不幸的是,当前“选定”的更改很难与所有其他更改区分开来,这使得此工作流有点麻烦:

我刚刚意识到,我可以通过更改
editor.lineHighlightBackground
editor.lineHighlightBorder
来定制它,但这将更改所有视图中当前活动行的高亮显示,这不是我想要的

我是否可以仅为差异视图自定义
编辑器.lineHighlightBorder

比如:

"workbench.colorCustomizations": {
    "editorCursor.foreground": "#f9ae58",

    "[diff]": {
        "editor.lineHighlightBorder": "#fff",
    }
},

在颜色定制中,只需键入“
diff
”(不带引号),您将看到各种选项,如:

"diffEditor.removedTextBorder": "#ff0000",
"diffEditor.removedTextBackground": "#ff0000",
"diffEditor.insertedTextBackground": "#ff0000",
"diffEditor.insertedTextBorder": "#ff0000",
因此,不,我认为您不能仅在Differditor中更改当前选定的行。没有这样的选择。此外,颜色自定义与其他设置不同,不支持特定于语言的设置。但也许使用上述四个选项会有所帮助