Visual Studio 2022 .razor 代码块闪烁

发布于 2025-01-17 05:08:23 字数 386 浏览 2 评论 0原文

我正在使用 Visual Studio 2022 企业版。在使用 .razor 文件时,我遇到了奇怪的闪烁。

一段时间以来,我的语法突出显示被破坏了。正如您在下图中看到的那样,突出显示不断闪烁。 有谁知道如何消除 C# 中 .razor 文件中的闪烁。此行为发生在某些文件中,而不是全部文件中。

我已经重建并清理了该项目。关闭 VS 或选项卡也不起作用。

输入图片这里的描述

忽略代码内容,仍在开发中:)

I am using Visual Studio 2022 Enterprise. While working with .razor files I have a strange flickering.

Since a while my syntax highlighting is broken. As you can see in the image below it is a constant flickering of the highlighting.
Does anyone knows how to get rid of the flickering in a .razor file in C#. This behavior is occurring in some of the file, not in all.

I have already rebuild and clean up the project. Closing VS or the tab does not work either.

enter image description here

Ignore the code content, that is still in development :)

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

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

发布评论

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

评论(2

油饼 2025-01-24 05:08:23

请参阅此页面
此问题的修复程序已发布!从 https://visualstudio.microsoft.com/downloads/ 安装最新版本。

更新到17.2可以解决这个问题。

See this page.
A fix for this issue has been released! Install the most recent release from https://visualstudio.microsoft.com/downloads/.

Update to 17.2 can solve the problem.

从﹋此江山别 2025-01-24 05:08:23

虽然更新 17.2 让它变得更好一些,但目前的解决方法是最大化所有折叠的代码块。

While update 17.2 makes it a little better the workaround for now is to maximize all collapsed code blocks.

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