zoukankan      html  css  js  c++  java
  • set .vscode for c++

    set .vscode for c++

    reference

    pre-requisite

    1. mingw64
    2. vscode and its extensions for c++
    // c_cpp_properties.json
    { // >c/c++ configurations(ui)
        "configurations": [
            {
                "name": "Win32",
                "includePath": [
                    "${workspaceFolder}/**"
                ],
                "defines": [
                    "_DEBUG",
                    "UNICODE",
                    "_UNICODE"
                ],
                "compilerPath": "D:/Apps/mingw64/bin/g++.exe", // >(ui)
                "cStandard": "c11",
                "cppStandard": "gnu++14",
                "intelliSenseMode": "gcc-x64" // >(ui)
            }
        ],
        "version": 4
    }
    
    // tasks.json
    { // >tasks: configure default build task
        "version": "2.0.0",
        "tasks": [
            {
                "type": "shell",
                "label": "g++.exe build",
                "command": "D:/Apps/mingw64/bin/g++.exe",
                "args": [
                    "-g",
                    "D:/Codes/cpp/${fileBasenameNoExtension}.cpp", // hard-coded in{.cpp}
                    "-o",
                    "D:/Codes/cpp/.out/${fileBasenameNoExtension}.exe" // hard_coded out{.exe}
                    // "${fileDirname}/${fileBasenameNoExtension}.exe"
                ],
                "options": {
                    // "cwd": "D:/Apps/mingw64/bin"
                    "cwd": "D:/Apps/Git/bin"
                },
                "problemMatcher": [
                    "$gcc"
                ],
                "group": {
                    "kind": "build", // ctrl-shift-b to build
                    "isDefault": true
                }
            }
        ]
    }
    
    // settings.json
    { // >preferences:open settings(json)
    	"editor.formatOnSave": true, // ctrl-shift-x: clang-format
    }
    
  • 相关阅读:
    ngnix-内网能用,外网不能用
    python学习
    mysql数据库导出xls-自定义
    Oralce-资源配置PROFILE
    oracle-用户管理与权限分配
    Oracle-创建索引分区
    Oracle-表分区
    Oracle--索引视图序列等对象
    Oracle-数据表对象
    Oracle-管理表空间和数据文件
  • 原文地址:https://www.cnblogs.com/qhinqiwei/p/13237446.html
Copyright © 2011-2022 走看看