visual studio code (vscode) configuration code running terminal c ++ 11 and support characteristics

1. Click Settings

Click CodeRunner pinion, click configure extension settings

2. Click map

Click executor map in Edit in settings.json

3. Paste the code

Paste the code below, press the save command + s

{
    "code-runner.runInTerminal": true,
    "C_Cpp.default.cppStandard": "c++11",
    "code-runner.executorMap": {
        "cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt -std=c++11 && $dir$fileNameWithoutExt"
    },
    "files.associations": {
        "typeinfo": "cpp"
    },
    "window.zoomLevel": 1,
}

Guess you like

Origin www.cnblogs.com/littlepage/p/12083117.html