Ниже моя текущая конфигурация (Часть для распознавания имен файла генерируется VS-кодом по умолчанию): < /p>
Код: Выделить всё
{
"type": "cppbuild",
"label": "Clang++ Release compiler",
"command": "clang++.exe",
"args": [
"-fcolor-diagnostics",
"-fansi-escape-codes",
"-std=c++20",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "E:\\mingw64\\bin"
},
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "Compiler: E:\\mingw64\\bin\\clang++.exe"
},
< /code>
Используя приведенную выше конфигурацию для компиляции, предупреждая меня об этом: < /p>
Cannot generate and debug because the active file is not a C or C++ source file.Подробнее здесь: https://stackoverflow.com/questions/794 ... ing-before