VSCode:启用或禁用自上次git commit以来修改的编辑器选项卡,显示带有已修改选项卡颜色的git状态 [英] VSCode: enable or disable editor tabs modified since last git commit, show git status with modified tabs colors

查看:148
本文介绍了VSCode:启用或禁用自上次git commit以来修改的编辑器选项卡,显示带有已修改选项卡颜色的git状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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 use workbench.editor.decorations.badges to decorate tabs with badges, like M 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆