1

So, apparently there has been an update. And i don't really understand what changed because i don't really keep up to date with changelogs of VSCode, but my C# formatting that i used to define in user/.omnisharp/omnisharp.json doesn't work anymore. I remember that last update, i already had to add "omnisharp.enableEditorConfigSupport": false to my settings.json in order to have omnisharp.json to be taken into account.

But, what happened since the latest update? Since i use Unity, I installed C# Dev Kit and the new Unity extension as described here, but i don't really understand what is going on.

If i understand correctly, the C# extension do not use Omnisharp by default anymore? So my question is, how am i supposed to have custom formatting options? (Especially keeping curly braces on the same line). Do i HAVE to use EditorConfig for VS Code extension? If so, how do i even keep open curly braces on the same line?

I managed to revert to using Omnisharp and make use my previous way of formatting trough omnisharp.json but i have that kinf of feeling that this method is on the way out, right?

Stbx
  • 11
  • 1
  • I've written a canonical post here attempting to focus on the actual root cause and official information on it; https://stackoverflow.com/q/76850403/11107541 – starball Aug 07 '23 at 09:30

1 Answers1

0

I encountered the same problem today and I apparently fixed it by going to Preferences > Settings > Omnisharp > Toggling on 'Dotnet>Server: Use Omnisharp'

Hope that helps

Thomas Finet
  • 222
  • 1
  • 6
  • I've written a canonical Q&A pair attempting to focus on the actual root cause and official information on it; https://stackoverflow.com/q/76850403/11107541 – starball Aug 07 '23 at 09:31