# VScode_C_Demo **Repository Path**: pleasecallmekaige/VScode_C_Demo ## Basic Information - **Project Name**: VScode_C_Demo - **Description**: 用vscode配置C++开发环境 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-05-01 - **Last Updated**: 2021-05-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 关于环境 **windows + MinGW** # 各个配置文件说明 ## .vscode/c_cpp_projects.json **与C++智能提示,符号解析相关的设置,与查看代码时跳转以及提示等功能有关** 主要配置内容为 "includePath":include路径 "compilerPath":编译器路径 其他属性查看[官方c_cpp_properties.json介绍](https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference) ## .vscode/launch.json **与代码调试的相关配置** 主要配置内容为 "program":配置需要调试的程序完整路径 "cwd":源代码工作目录路径 "MIMode": 采用那种调试程序gdb或lldb "miDebuggerPath": 调试程序的完整路径 "preLaunchTask": 这个是调试前执行的任务,一般我是配置为编译任务 其他属性查看[官方launch-json-reference](https://code.visualstudio.com/docs/cpp/launch-json-reference) ## .vscode/task.json **自定义任务** 一般c++程序的话我的做法是使用makefile,然后配置一个make任务进行程序编译 或者直接使用build任务中的g++命令 这两个任务选哪一种取决于.vscode/launch.json 中的preLaunchTask属性 任务的具体配置可查看[官方文档task](https://code.visualstudio.com/docs/editor/tasks) ## .clang-format **用于配置代码格式** shift+Alt+F格式化代码 各项配置具体含义[Clang-Format Style Option](https://clang.llvm.org/docs/ClangFormatStyleOptions.html)