VisualStudioCode配置c/c++环境(插件C/C++ Compile Run使用)

     目前VisualStudioCode编译器配置c/c++编译环境的的教程,都是基于C/C++ for Visual Studio Code插件的。使用的时候需要配置tasks.json、   launch.json、 c_cpp_properties.json文件。
  其实可以直接安装对应的插件,使用系统环境中配置好的c/c++编译环境。

配置步骤:

  1. 系统环境变量中添加c编译环境路径:(这里使用的是codeblock的mingw路径)VisualStudioCode配置c/c++环境(插件C/C++ Compile Run使用)_第1张图片
  2. 安装Visual Studio Code第三方插件“C/C++ Compile Run
    VisualStudioCode配置c/c++环境(插件C/C++ Compile Run使用)_第2张图片
    3.使用 .c 文件验证一下
    (文件保存后,按 F6 完成文件的编译运行 ,或按F7,这将使用您为程序指定的参数)
    VisualStudioCode配置c/c++环境(插件C/C++ Compile Run使用)_第3张图片

完美!!!

你可能感兴趣的:(tools)