VSCode F12转到定义无效。 显示未定义

Visual Studio Code F12转到定义显示未定义_github

Visual Studio Code

这周一直不能使用F12,简直要疯啊。重装之后莫名其妙的源代码管理修好了。但还是不能转到定义


最后。在GitHub的issue上找到了类似

​https://github.com/OmniSharp/omnisharp-vscode/issues/1362​


解决方法就是

Found out that this was caused by the .sln and .csproj files missing. Had to reimport the VSCode asset into unity and that fixed everything.

打开的文件夹包含.sln 和 .csproj