About the bug that the code in the cshtml file cannot be colored correctly in vs2022.

cosky 26 Reputation points
2022-07-02T06:01:22.367+00:00

216990-snipaste-2022-07-02-13-27-18.png
As shown in the above picture, the code cannot be colored correctly.

neither restarting the editor nor reloading the project solves the problem.

does anyone have the same problem?

please let me know if there is a solution, it would be greatly appreciated.

OS: Windows11

IDE: VS2022 Enterprise 17.1.6 (X64)

Developer technologies | Visual Studio | Other
{count} votes

Accepted answer
  1. PengGe-MSFT 3,381 Reputation points
    2022-07-07T10:30:13.513+00:00

    Hi @cosky

    I converted the comment to an answer. If you have any more issues, please kindly let us know.

    Please update Visual Studio.

    Best Regards,
    Peng

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.