修改.vscode目录下compileCommands_***.json多个文件
{
"file": "E:\\\\Unreal Projects\\\\wargame_sanguo\\\\Source\\\\wargame_sanguo\\\\.vs\\\\ProjectSettings.json",
"command": "E:\\Unreal Projects\\wargame_sanguo\\.vscode\\compileCommands_Default\\wargame_sanguo.214.rsp\"",
"directory": "E:\\game\\UE_4.27\\Engine\\Source"
},
command行内添加cl的路径注意前后"转义"
{
"file": "E:\\\\Unreal Projects\\\\wargame_sanguo\\\\Source\\\\wargame_sanguo\\\\.vs\\\\ProjectSettings.json",
"command": "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\Hostx64\\x64\\cl.exe\" C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\x64\\cl.exe @\"E:\\Unreal Projects\\wargame_sanguo\\.vscode\\compileCommands_Default\\wargame_sanguo.214.rsp\"",
"directory": "E:\\game\\UE_4.27\\Engine\\Source"
},
另外一种解决方法 github有相关VSCode插件
插件链接
其解决方案是删除路径并保留cl.exe
参考来源:stackOverFlow
标签:cl,VScode,ue4.27,wargame,源文件,Source,Unreal,sanguo,Projects From: https://www.cnblogs.com/wes1502/p/17310934.html