Using vscode to develop C#+unity has no code prompt problem

Recently, when using VS Code, I encountered various errors from OmniSharp, resulting in no code hints. This problem is caused by an updated version of C# itself.
1. Search for Use Modern Net in the settings, uncheck it, and restart VS Code!
insert image description here
2. There is still an error after changing it, prompting that
OmniSharp server is not running.
or Could not locate MSBuild instance to register with OmniSharp. The
C# plug-in returns to 1.24.4, and at the same time, it is enough to upgrade the Visual Studio Code Editor package to 1.2.5.

3. It still doesn’t work. It should be your unity. You didn’t choose vscode as the default editor.
insert image description here

Perfect solution, if you have other questions, you can comment and private message me

Guess you like

Origin blog.csdn.net/qq_36303853/article/details/130243119