Home > Software engineering >  How to enable intellisense in VS Code for C# when .net sdk installed via snap
How to enable intellisense in VS Code for C# when .net sdk installed via snap

Time:05-28

I've downloaded this extension: screen image

Working folder is selected, .csproj is selected. I did enable and disabled the extension, restarted VS Code, but still it didnt help. There are only keywords that i'm using in the list, but no any System.Object and other types functionality available: screen image 2

upd: Forgot to mention that my sdk and runtime installed via snap tool, so .net sdk path is /snap/dotnet-sdk/167/sdk/5.0.408/ Could snap be the problem, if yes, how to fix it?

CodePudding user response:

Omg, changed version of omnisharp extension from newest to v1.24.4 and it helped.....

CodePudding user response:

After updating Omnisharp version to v1.25.0, it was not able to locate MSBuild for me. I have installed .Net 6.0 and omnisharp was able to locate MSBuild from there.

The older version of Omnisharp has MSBuild available within their extension install folder C:\Users\Username.vscode\extensions\ms-dotnettools.csharp-XX.XX.XX....omnisharp\X.XX.XX\msbuild

  • Related