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

 

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

 

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

DKZ001

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值