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.
If you open a folder tracked by git, modifie and save a file you'll normally see the file name in orange with a little M, here an exemple
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.