Linux下 Vscode launch.json 以及tasks.json配置

launch.JSON
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
“version”: “0.2.0”,
“configurations”: [

    {
        "name": "g++ - 生成和调试活动文件",
        //"label":"Compile",
        "type": "cppdbg",
        "request": "launch",
        "program": "${fileDirname}/${fileBasenameNoExtension}",
        "args": [],
        "stopAtEntry": false,
        "cwd": "${fileDirname}",
        "environment": [],
        "externalConsole": false,
        "MIMode": "gdb",
        "setupCommands": [
            {
                "description": "为 gdb 启用整齐打印",
                "text": "-enable-pretty-printing",
                "ignoreFailures": true
            },
            {
                "description": "将反汇编风格设置为 Intel",
                "text": "-gdb-set disassembly-flavor intel",
                "ignoreFailures": true
            }
        ],
        "preLaunchTask": "C/C++: g++ 生成活动文件",
        "miDebuggerPath": "/usr/bin/gdb"
    }
]

}

task.JSON
{
“tasks”: [
{
“type”: “cppbuild”,
“label”: “C/C++: g++ 生成活动文件”,
“command”: “/usr/bin/g++”,
“args”: [
“-std=c++11”,
// “-stdlib=libc++”,
“-fdiagnostics-color=always”,
“-g”,
// “ f i l e " , " {file}", " file","{workspaceFolder}/*.cpp”,
“-o”,
f i l e D i r n a m e / {fileDirname}/ fileDirname/{fileBasenameNoExtension}”
],
“options”: {
“cwd”: “KaTeX parse error: Expected 'EOF', got '}' at position 28: …}" }̲, "…gcc”
],
“group”: {
“kind”: “build”,
“isDefault”: true
},
“presentation”: {
“panel”: “new”
},
“detail”: “调试器生成的任务。”
}
],
“version”: “2.0.0”
}

你可能感兴趣的:(vscode,linux,ide)