Visual Studio Code - filename color

倖福魔咒の 提交于 2021-02-07 06:55:24

问题


For some reason, after the update, some filenames appear yellow.

How do I disable it?


回答1:


settings.json Ctrl+,

"git.decorations.enabled": false

https://code.visualstudio.com/updates/v1_18#_git-status-in-file-explorer




回答2:


To generally disable the colors in the explorer, one can use the setting:

User/Features/Explorer/Decorations/Colors: false



回答3:


As part of the update, Visual Studio Code integrates the colour highlighting of Git version control into the main file explorer.

That’s why you’re seeing yellow for some files as changes have been made to them that have not yet been committed in Git.

You can remove the colour highlighting by adding this line to your settings.json file in VS Code, accessible via Preferences.

"git.decorations.enabled": false

If you wish, you can disable the Git integration entirely by adding these lines to the settings.json file instead.

{
...
  // Disable Git
  "git.enabled": false,
  "git.path": null,
  "git.autofetch": false
}


来源:https://stackoverflow.com/questions/47290359/visual-studio-code-filename-color

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!