【问题标题】:Get rid of the "M" mark after file name in vscode [duplicate]去掉vscode中文件名后的“M”标记[重复]
【发布时间】:2021-06-29 00:03:22
【问题描述】:

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

有没有人知道如果关机怎么办?


我检查了我的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",

【问题讨论】:

  • thanks : ) 通过将行添加到 settings.json 解决了问题:"workbench.editor.decorations.badges":false

标签: visual-studio-code vscode-settings


【解决方案1】:

对于 Linux 用户:

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

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

对于 macOS 用户:

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

Screenshot

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

【讨论】:

  • 它在 Linux、Windows 或 Mac 上的工作方式相同。您也可以使用 UI 进行设置。顶部栏上的徽章和文件浏览器树上的徽章有一个单独的设置。
猜你喜欢
  • 2018-06-08
  • 2020-06-18
  • 1970-01-01
  • 2021-09-24
  • 2012-09-09
  • 2023-01-02
  • 2019-04-11
  • 1970-01-01
  • 2011-08-15
相关资源
最近更新 更多