Visual Studio Code syntax errors not being highlighted for C#

Jeremy Marin 20 Reputation points
2024-02-20T22:26:47.7733333+00:00

I am creating a new console project in Visual Studio Code using "dotnet run new console -n 'name'", but syntax errors are not being highlighted anymore. Even when I forget to use a ";" or make a syntax error, I don't see error squiggles. This only happens in C#. I have installed and updated all necessary extensions, and even tried reinstalling .NET, Visual Studio Code, and C# Dev Kit, changing error squiggle settings, and going back to a previous version of .NET. Before, reinstalling .NET or C# Dev Kit solved the issue, but that is not the case anymore. I use Windows 11 and have the Error Lens extension installed. Any suggestions?

C#
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.
11,040 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rax 0 Reputation points
    2024-07-02T07:52:47.7+00:00

    Did you find the method to fix it? I have the same question of Visual Studio Code for C#.

    0 comments No comments

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.