去掉vscode中文件名后的“M”标记

问题描述

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

enter image description here

enter image description here

有谁知道怎么关掉吗?


我检查了我的 setting.json 中的新行,似乎它们与此问题无关:

"explorer.confirmDelete": false,"git.enableSmartCommit": true,"git.confirmSync": false,"editor.wordWrap": "on","files.associations": {
    "*.json": "jsonc"
},"explorer.confirmDragAndDrop": false,"window.zoomLevel": 1,"workbench.editorAssociations": [
    {
        "viewType": "jupyter.notebook.ipynb","filenamePattern": "*.ipynb"
    }
],"terminal.integrated.inheritEnv": false,"python.languageServer": "Pylance","markdown.extension.preview.autoShowPreviewToSide": true,"workbench.sideBar.location": "right","files.autoSave": "afterDelay",

解决方法

对于 Linux 用户:

在vscode的settings.json文件中加入这一行:

format(zoo::as.yearqtr(Sys.Date()),'%Y-%q')
#[1] "2021-2"

对于 macOS 用户:

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

Screenshot

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