Timmy
Timmy

Reputation: 1

I can't format C# in vscode

I have tried putting JSON in settings and enable C# formatter in setting and it is still showing There is no formatter for C# files installed what do I do also where do I put JSON code in settings JSON. I have installed C# extension and visual studio code version is 1.60.1

Error message

Enabled C# format in setting

Upvotes: 0

Views: 295

Answers (1)

Costa
Costa

Reputation: 2964

Visual Studio Code with the OmniSharp C# extension doesn't format C# code without a .csproj file. You can create a new project if you type dotnet new console in the terminal.

Upvotes: 1

Related Questions