【问题标题】:Text color is off in VS CodeVS Code 中的文本颜色已关闭
【发布时间】:2022-11-17 15:25:12
【问题描述】:

最近,我的文本颜色一直是 VS Code 中的 js、jsx、ts、tsx 文件。

我真的不知道发生了什么,但它突然不工作了。

如您所见,该文件被检测为 typescript react 文件,但我没有任何文本着色。

【问题讨论】:

    标签: javascript typescript visual-studio-code


    【解决方案1】:

    这个警告来自使用 Nextjs 时的 Eslint 规则,它建议你应该使用 Nextjs 的组件。按照这篇文章找到你的问题!

    Error: Do not use <img>. Use Image from 'next/image' instead. - Next.js using html tag <img /> ( with styled components )

    【讨论】:

    • 我不是在谈论 <img/>,您是否注意到 vscode 中的着色已关闭?我在问是否有办法在 VS 代码中再次启用文本着色。我感谢您的帮助!
    猜你喜欢
    • 2022-01-21
    • 1970-01-01
    • 2023-02-06
    • 1970-01-01
    • 2018-02-10
    • 2022-06-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多