直接找到cl.exe路径(比如C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\Hostx64\x64\cl.exe
),在vs code中按下Ctrl+shift+P,打开C/C++ configurations(UI)填写进compiler path里面就好。
直接找到cl.exe路径(比如C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\Hostx64\x64\cl.exe
),在vs code中按下Ctrl+shift+P,打开C/C++ configurations(UI)填写进compiler path里面就好。