gpt4 book ai didi

visual-studio-code - 是否可以在树中更改 VS Code 中的 linting 错误颜色?

转载 作者:行者123 更新时间:2023-12-04 16:04:14 25 4
gpt4 key购买 nike

Visual Studio Code 有一项功能,当出现 linting 错误时,它会更改文件树中文件名的颜色。不幸的是,错误颜色对我来说看起来有点刺眼: VS Code File Tree

有什么办法可以改变这里的错误颜色吗?我知道我可以使用 problems.decorations.enabled 完全禁用它,但我更愿意启用它们,但不要太刺眼。我已经完成了可用的主题自定义 here ,但我还没有找到任何与 problems.decorations 相关的内容。

最佳答案

您可以查看其他两个设置:

  "explorer.decorations.colors": false,
"explorer.decorations.badges": false

和一些颜色自定义(参见 git decorator colors)

Git Colors

gitDecoration.modifiedResourceForeground: Color for modified git resources. Used file labels and the SCM viewlet.

gitDecoration.deletedResourceForeground: Color for deleted git resources. Used file labels and the SCM viewlet.

gitDecoration.untrackedResourceForeground: Color for untracked git resources. Used file labels and the SCM viewlet.

gitDecoration.ignoredResourceForeground: Color for ignored git resources. Used file labels and the SCM viewlet.

gitDecoration.conflictingResourceForeground: Color for conflicting git resources. Used file labels and the SCM viewlet.

但是,似乎没有办法改变问题颜色的颜色。修改的、未跟踪的和忽略的都可以正常工作。您可以使用

将文件名颜色改回无色
  "explorer.decorations.colors": false,

设置。

关于visual-studio-code - 是否可以在树中更改 VS Code 中的 linting 错误颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49383209/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com