Solvedomnisharp vscode Format code returns: Sorry, but there is no formatter for 'csharp'-files installed.
✔️Accepted Answer
Ah got it, there was line "csharp.format.enable": false,
in my user config, after cleared that it started working again. C# fixformat extensions seems to set it, tested to install it after cleared user settings ...
However other issues mentioned here may not be releated to this. Should this issue be closed or?
Other Answers:
I know this issue is closed but I am getting the same error on visual studio code 1.22.2 on Windows 10.
Version 1.22.2
Commit 3aeede733d9a3098f7b4bdc1f66b63b0f48c1ef9
Date 2018-04-12T16:38:45.278Z
Shell 1.7.12
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64
I uninstalled all the extensions, reinstalled Visual Studio Code and still getting the same error.
I checked that and it is true. I don’t have any other extensions installed. When u install it by default it should be set true. I removed any data related to extensions before I installed.
For those who've confirmed that "csharp.format.enable"
is set to true
and you're still having the issue, it's being tracked over here: #2391
Environment data
dotnet --info
output:VS Code version:
Version 1.19.2
Commit 490ef761b76b3f3b3832eff7a588aac891e5fe80
Date 2018-01-10T16:16:25.767Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architecture ia32
C# Extension version:
1.13.1
Steps to reproduce
I did got extension C# FixFormat installed. I uninstalled it and after that i constantly just receive "Sorry, but there is no formatter for 'csharp'-files installed". Feels like omnisharp doesn't install that part any more, i tried to reinstall omnisharp without success.
I didn't find any errors or messages from omnisharp log or vscode developer console. Didn't try debugmodes though.
Expected behavior
Format is invoked.
Actual behavior
Format is not invoked and error "Sorry, but there is no formatter for 'csharp'-files installed." appear in vscode.