vs code 提示未定义的标识符 不能提示变量 vscode 未找到任何定义

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceFolder}"
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE"
            ],
            "windowsSdkVersion": "8.1",
            "compilerPath": "D:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe",
            "cStandard": "c11",
            "cppStandard": "c++17",
            "intelliSenseMode": "msvc-x64"
        }
    ],
    "version": 4
}

 "includePath": [

                "${workspaceFolder}/**"

]

把  "${workspaceFolder}/**" 改为  "${workspaceFolder}" 就可以了

 

    提示:vscode  未找到任何定义  用F12不能跳转。网上找到是:

解决方法就是

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

 

也没看懂,但是觉得却文件,重新打开文件夹就好了,会自动新建 :关闭工作区,打开可以使用了
 

 

你可能感兴趣的:(vs code 提示未定义的标识符 不能提示变量 vscode 未找到任何定义)