title: 'g++' is not recognized as an internal or external command, operable program or batch file.
body: <p>I am trying to set up the VScode with C++ Compiler 
  By following this tutorial 
  <a href="https://medium.com/@jerrygoyal/run-debug-intellisense-c-c-in-vscode-within-5-minutes-3ed956e059d6" rel="noreferrer">enter link description here</a></p>
  
  <p>and the problem I got is (By running the code with code runner)</p>
  
  <blockquote>
    <p>'g++' is not recognized as an internal or external command,
    operable program or batch file.
    <a href="https://i.stack.imgur.com/0PQ1E.png" rel="noreferrer">enter image description here</a></p>
  </blockquote>
  
  <p>and if  I run with the debug option I got this problem</p>
  
  <blockquote>
    <p>The preLaunchTask 'build &amp; run file' terminated with exit code 1.<a href="https://i.stack.imgur.com/oZoSv.png" rel="noreferrer">enter image description here</a></p>
  </blockquote>
  
  <p>This is my "c_cpp_properties.json"</p>
  
  <pre><code>{
  "configurations": [
      {
          "name": "Win32",
          "intelliSenseMode": "clang-x64",
          "defines": [
              "_DEBUG",
              "UNICODE",
              "__GNUC__=7",
              "__stdcall=attribute((stdcall))",
              "__cdecl=__attribute__((__cdecl__))",
              "__cplusplus=201703L"
          ],
          "includePath": [
              "${workspaceFolder}/include",
              "C:/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++",
              "C:/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++/x86_64-w64-mingw32",
              "C:/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++/backward",
              "C:/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/include",
              "C:/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../include",
              "C:/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/include-fixed",
              "C:/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/include"
          ],
          "browse": {
              "path": [
                  "${workspaceFolder}/include",
                  "C:/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++",
                  "C:/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++/x86_64-w64-mingw32",
                  "C:/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++/backward",
                  "C:/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/include",
                  "C:/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../include",
                  "C:/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/include-fixed",
                  "C:/MinGW64/bin/../lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/include"
              ],
              "limitSymbolsToIncludedHeaders": false,
              "databaseFilename": ""
          },
          "cStandard": "c11",
          "cppStandard": "c++17"
      }
  ],
  "version": 4
  </code></pre>
  
  <p>}</p>
  
  <p>This is my "launch.json"</p>
  
  <pre><code>{
    "version": "0.2.0",
    "configurations": [
      {
        "name": "Run C/C++",
        "type": "cppdbg",
        "request": "launch",
        "program": "${workspaceFolder}/${fileBasenameNoExtension}.exe",
        "args": [],
        "stopAtEntry": false,
        "cwd": "${workspaceFolder}",
        "environment": [],
        "externalConsole": true,
        "MIMode": "gdb",
        "miDebuggerPath": "C:/MinGW64/bin/gdb.exe",
        "setupCommands": [
          {
            "description": "Enable pretty-printing for gdb",
            "text": "-enable-pretty-printing",
            "ignoreFailures": false
          }
        ],
        "preLaunchTask": "build &amp; run file"
      },
      {
        "name": "Debug C/C++",
        "type": "cppdbg",
        "request": "launch",
        "program": "${workspaceFolder}/${fileBasenameNoExtension}.exe",
        "args": [],
        "stopAtEntry": false,
        "cwd": "${workspaceFolder}",
        "environment": [],
        "externalConsole": true,
        "MIMode": "gdb",
        "miDebuggerPath": "C:/MinGW64/bin/gdb.exe",
        "setupCommands": [
          {
            "description": "Enable pretty-printing for gdb",
            "text": "-enable-pretty-printing",
            "ignoreFailures": false
          }
        ],
        "preLaunchTask": "build &amp; debug file"
      }
    ]
  }
  </code></pre>
  
  <p>And this is my "tasks.json"</p>
  
  <pre><code>{
    "version": "2.0.0",
    "tasks": [
      {
        "label": "build &amp; debug file",
        "type": "shell",
        "command": "g++",
        "args": [
          "-g",
          "-o",
          "${fileBasenameNoExtension}",
          "${file}"
        ],
        "group": {
          "kind": "build",
          "isDefault": true
        }
      },
      {
        "label": "build &amp; run file",
        "type": "shell",
        "command": "g++",
        "args": [
          "-o",
          "${fileBasenameNoExtension}",
          "${file}"
        ],
        "group": {
          "kind": "build",
          "isDefault": true
        }
      }
    ]
  }
  </code></pre>
  
  <p>I just want to study C++ and I try a lot of way on the Internet for days and I still can't fix it Please help.
  Thank you.</p>