第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何設置Visual Studio代碼來編譯C ++代碼?

如何設置Visual Studio代碼來編譯C ++代碼?

米脂 2019-09-18 14:57:53
Microsoft的Visual Studio代碼編輯器相當不錯,但它沒有構建C ++項目的默認支持。如何配置它來執(zhí)行此操作?
查看完整描述

3 回答

?
浮云間

TA貢獻1829條經驗 獲得超4個贊

新的2.0.0 tasks.json版本的makefile任務示例。


在下面的一些評論的片段中,我希望它們會有用。


{

    "version": "2.0.0",

    "tasks": [

        {

            "label": "<TASK_NAME>",

            "type": "shell",

            "command": "make",

            // use options.cwd property if the Makefile is not in the project root ${workspaceRoot} dir

            "options": {

                "cwd": "${workspaceRoot}/<DIR_WITH_MAKEFILE>"

            },

            // start the build without prompting for task selection, use "group": "build" otherwise

            "group": {

                "kind": "build",

                "isDefault": true

            },

            "presentation": {

                "echo": true,

                "reveal": "always",

                "focus": false,

                "panel": "shared"

            },

            // arg passing example: in this case is executed make QUIET=0

            "args": ["QUIET=0"],

            // Use the standard less compilation problem matcher.

            "problemMatcher": {

                "owner": "cpp",

                "fileLocation": ["absolute"],

                "pattern": {

                    "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",

                    "file": 1,

                    "line": 2,

                    "column": 3,

                    "severity": 4,

                    "message": 5

                }

            }

        }

    ]

}


查看完整回答
反對 回復 2019-09-18
  • 3 回答
  • 0 關注
  • 721 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號