title: Compiling C/C++ in VS Code
body: <p>I'm trying to compile C/C++ code in VS Code using cl (installed via visual studio 2019). I've set up the json files like the MS website suggests,</p>
  
  <p><a href="https://code.visualstudio.com/docs/cpp/config-msvc" rel="noreferrer">https://code.visualstudio.com/docs/cpp/config-msvc</a>,</p>
  
  <p>but I still get the error:</p>
  
  <pre><code>cl.exe : The term 'cl.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  </code></pre>
  
  <p>Here are my json files:</p>
  
  <pre><code>{
  "configurations": [
      {
          "name": "Win32",
          "includePath": [
              "${workspaceFolder}/**"
          ],
          "defines": [
              "_DEBUG",
              "UNICODE",
              "_UNICODE"
          ],
          "windowsSdkVersion": "10.0.17763.0",
          "compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx64/x64/cl.exe",
          "cStandard": "c11",
          "cppStandard": "c++17",
          "intelliSenseMode": "msvc-x64"
      }
  ],
  "version": 4
  </code></pre>
  
  <p>}</p>
  
  <pre><code>{
  "version": "2.0.0",
  "tasks": [
      {
          "label": "msvc build",
          "type": "shell",
          "command": "cl.exe",
          "args": [
              "/EHsc",
              "/Zi",
              "/Fe:",
              "helloworld.exe",
              "test.c"
          ],
          "group":  {
              "kind": "build",
              "isDefault": true
          },
          "presentation": {
              "reveal":"always"
          },
          "problemMatcher": "$msCompile"
      }
  ]
  </code></pre>
  
  <p>}</p>