C&C++   发布时间:2022-04-03  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了vscode 配置c++记录大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
  1. c_cpp_properties.json
{
    "configurations": [
        {
            "name": "MinGW","includePath": ["${workspaceFolder}/**"],"defines": ["_DEBUG","UNICODE","_UNICODE"],"compilerPath": "C:\\mingw64\\bin\\g++.exe","cStandard": "c11","cppStandard": "c++17","intelliSenseMode": "clang-x64"
        },{
            "name": "WSL","intelliSenseMode": "gcc-x64","compilerPath": "/usr/bin/gcc","defines": [],"cppStandard": "c++17"
        }
    ],"version": 4
}
  1. launch.json
{
    "version": "0.2.0","configurations": [
        {
            "name": "(gdb) Launch","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","ignore@R_295_4895@": true
                }
            ],"preLaunchTask": "build eigen"
        }
    ]
}
  1. setTings.json
{
    "files.associations": {
        "queue": "cpp","vector": "cpp","array": "cpp","*.tcc": "cpp","bitset": "cpp","cctype": "cpp","clocale": "cpp","cmath": "cpp","cstdint": "cpp","cstdio": "cpp","cstdlib": "cpp","cString": "cpp","cwchar": "cpp","cwctype": "cpp","deque": "cpp","list": "cpp","unordered_map": "cpp","exception": "cpp","fstream": "cpp","functional": "cpp","initializer_list": "cpp","iosfwd": "cpp","iostream": "cpp","istream": "cpp","limits": "cpp","new": "cpp","ostream": "cpp","numeric": "cpp","sstream": "cpp","stdexcept": "cpp","streambuf": "cpp","type_Traits": "cpp","tuple": "cpp","typeinfo": "cpp","utility": "cpp","stdlib.h": "c","valarray": "cpp","chrono": "cpp","map": "cpp","atomic": "cpp","cfenv": "cpp","cinttypes": "cpp","complex": "cpp","condition_variable": "cpp","csetjmp": "cpp","csignal": "cpp","cstdarg": "cpp","@R_673_10503@e": "cpp","forWARD_list": "cpp","unordered_set": "cpp","future": "cpp","iomanip": "cpp","mutex": "cpp","ratio": "cpp","scoped_allocator": "cpp","system_error": "cpp","thread": "cpp","typeindex": "cpp","random": "cpp","regex": "cpp","stack": "cpp","xhash": "cpp","xString": "cpp","xtree": "cpp","xutility": "cpp","String_view": "cpp"
    },"code-runner.runInTerminal": true,// 设置成false会在“输出”中输出,无法交互
    "code-runner.saveFileBeforeRun": true,"C_Cpp.clang_format_sorTincludes": true
}
  1. tasks.json
{
    "version": "2.0.0","tasks": [
        {
            "label": "build eigen","type": "sHell","command": "g++","args": ["-g","${filE}","-o","${fileBasenameNoExtension}.exe"],"group": {
                "kind": "build","isDefault": true
            }
        }
    ]
}

大佬总结

以上是大佬教程为你收集整理的vscode 配置c++记录全部内容,希望文章能够帮你解决vscode 配置c++记录所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。