删除 vscode 中文件名后的 "M" 标记

Get rid of the "M" mark after file name in vscode

不知道是不是vscode的新功能。但我只想要文件名消失后的“1”标记和“M”标记:

有谁知道如何关闭吗?

对于 Linux 用户:

将此行添加到 vscode 的 settings.json 文件中:

"workbench.editor.decorations.badges":false,

对于 macOS 用户:

这是来自 macOS 中的 git gui,您可以通过转到设置并取消选中“启用 git”来禁用它,如下所示:

Screenshot

这样做不会禁用 git cli 的命令行使用,它只会禁用 Vs Code 提供的 GUI 功能,至少据我测试是这样。