Visual studio code C/C++;Visual Studio代码的扩展是否找到默认编译器?
我启动了一个项目,创建了我的Visual studio code C/C++;Visual Studio代码的扩展是否找到默认编译器?,visual-studio-code,Visual Studio Code,我启动了一个项目,创建了我的c\u cpp\u properties.json文件。我很惊讶地发现,默认情况下,文件的内容显示为编译器: { "configurations": [ { "name": "Win32", "includePath": [ "${workspaceFolder}/**" ], "defines": [ "_DEBUG", "
c\u cpp\u properties.json
文件。我很惊讶地发现,默认情况下,文件的内容显示为编译器:
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "",
"compilerPath": "C:\\DiaSemi\\SmartSnippetsStudio\\Tools\\mingw64_targeting32\\bin\\gcc.exe",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "clang-x64"
}
],
"version": 4
}
我想知道它是如何找到特定的
gcc.exe
路径的,因为即使它安装在我的计算机中,我也从未使用过它,如果我使用过,我会从对话框半IDE而不是Visual Studio代码中使用它。如果我设置过默认编译器,那可能是我最后选择的编译器。我检查了设置,就我的一生而言,我找不到任何“默认编译器”设置。VS Code通过我在Windows中的常规路径中的一个非常奇怪的include找到了它。删除后,新项目没有默认的编译器路径