VSCode:启用或禁用自上次git commit以来修改的编辑器选项卡,显示带有已修改选项卡颜色的git状态 [英] VSCode: enable or disable editor tabs modified since last git commit, show git status with modified tabs colors
问题描述
在VSCODE中,如何突出显示与以前的git commit相比已修改的选项卡?为了显示他们的git状态.
注意:这不是
colorCustomizations
gitDecoration ....
"workbench.colorCustomizations":{"gitDecoration.modifiedResourceForeground":#ff0000",}
要同时更改资源管理器视图和标签的颜色.
In VSCODE, how can I highlight tabs that were modified compared to previous git commit? In order to show their git status.
Note: This is not a duplicate of How can I edit VS Code settings so that the tabs of modified files are highlighted?, since that question relates to unsaved changes, and this question relates to saved changes that were modified compared to the recent git commit.
v1.53 has added this functionality, see Release notes: tab decorations.
Two new settings allow you to configure whether editor tabs show decorations, such as git status or diagnostics. Use
workbench.editor.decorations.colors
to decorate tabs with colors, like red/green for files with errors and warnings, and useworkbench.editor.decorations.badges
to decorate tabs with badges, likeM
for git modified.
Previously : [These are not enabled by default.]
Edit : Note that these are scheduled to be turned on by default as of v1.55. so if you want to turn this feature off, disable
workbench.editor.decorations.colors
workbench.editor.decorations.badges
or these settings in the UI
Workbench > Editor > Decorations: Colors
Workbench > Editor > Decorations: Badges
The colorCustomizations
gitDecoration....
"workbench.colorCustomizations": {
"gitDecoration.modifiedResourceForeground": "#ff0000",
}
work to change BOTH the Explorer view and tab colors.
这篇关于VSCode:启用或禁用自上次git commit以来修改的编辑器选项卡,显示带有已修改选项卡颜色的git状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!