如何在VS代码中启用更漂亮的突出显示?

发布于 2025-02-09 00:51:45 字数 146 浏览 0 评论 0原文

我在VS代码中安装了漂亮的扩展名,并且当我从命令调色板运行格式时,它正确格式化JavaScript文件。但是,当我输入时,它并没有突出显示 /强调问题。我已经看到了此在网上为其他人工作的屏幕截图。如何实现问题的实时突出显示?我的设置更漂亮,为默认格式。

I have the Prettier extension installed in VS Code and it formats Javascript files correctly when I run Format Document from the command palette. But it does not highlight / underline problems as I'm typing. I've seen screenshots of this working for other people online. How do I enable the real-time highlighting of problems? I have Prettier set as the default formatter.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

软糯酥胸 2025-02-16 00:51:45

我认为您需要 eslint 。更漂亮的格式。另请参阅此插件的出色工作:代码拼写检查器

I think you need ESLint. Prettier only formats. See also this plugins for a good job: Babel, Code Spell Checker

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文