Colour change Bug of the code

Kim Burmester 21 Reputation points
2022-12-03T13:20:14.833+00:00

Colour change of the code

The error occurred today when I had a syntax error in a code.
The colour of the code text changed as shown in the picture.
Where does this come from?

266726-nonamefthr.jpg

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,686 Reputation points Microsoft External Staff
    2022-12-05T08:25:54.373+00:00

    Hi @Kim Burmester ,

    Welcome to Microsoft Q&A forum.

    Did you update Visual Studio Community 2022 Preview(as I see that you are using the currently latest version of preview version of VS, and I guess that the error appeared after VS was updated?)?

    In addition to "this is a potential issue of VS Community 2022 Preview", perhaps, the latest version of VS Community 2022 Preview isn’t fully compatible with the related extension(s) that you installed.

    If it’s possible, you can try to check the description of related extension(s) or ask the extension author to confirm this. Or you can try to disable the extension(s) and double confirm whether this is a compatible issue.

    In case it’s a potential issue of VS Community 2022 Preview, could you please also submit a ticket on our Developer Community for further investigate?

    Besides, you said that the errors did not reoccur after a while, I’m not sure if it appears again now or in the future. Please try to repair and reset Visual Studio, if it reoccurs.

    Feel free to contact us.

    Best Regards,
    Tianyu

    • 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.

Your answer

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