为什么我的 npm_modules 文件夹在 VS Code 中全部突出显示为红色?
Why are my npm_modules folders all highlighted red in VS Code?
我最近从 BitBucket 克隆了一个 React 存储库(基于 create-react-app
)。为什么我的所有 node_modules 文件夹在 Visual Studio 代码中都突出显示为红色?
我 运行 npm install
、npm update
和 npm start
并没有 运行 进入任何错误,但文件夹仍然以红色突出显示。我怎样才能确保这些包 installed/updated 正确?
答案张贴在这里:https://github.com/Microsoft/vscode/issues/54574
Last post on the above thread: "This unrelated to intellisense. It is caused by cobalt2 theme which—from what I can tell at least—decided to color .gitignored files as red. You can disable explorer colorization this by setting "explorer.decorations.colors": false
"
您可以在 VS Code 设置中更改被忽略文件的颜色(深灰色适合我):
"workbench.colorCustomizations": {
"[Cobalt2]": {
"gitDecoration.ignoredResourceForeground": "#808080",
}
},
我最近从 BitBucket 克隆了一个 React 存储库(基于 create-react-app
)。为什么我的所有 node_modules 文件夹在 Visual Studio 代码中都突出显示为红色?
我 运行 npm install
、npm update
和 npm start
并没有 运行 进入任何错误,但文件夹仍然以红色突出显示。我怎样才能确保这些包 installed/updated 正确?
答案张贴在这里:https://github.com/Microsoft/vscode/issues/54574
Last post on the above thread: "This unrelated to intellisense. It is caused by cobalt2 theme which—from what I can tell at least—decided to color .gitignored files as red. You can disable explorer colorization this by setting
"explorer.decorations.colors": false
"
您可以在 VS Code 设置中更改被忽略文件的颜色(深灰色适合我):
"workbench.colorCustomizations": {
"[Cobalt2]": {
"gitDecoration.ignoredResourceForeground": "#808080",
}
},