VS Code windows系統C/C++環境配置_添加路徑


1.安裝cygwin

2.配置VS Code

使用CMAKE工具配置文件夾,配置好后會出現settings.json的文件

{
    "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
}

按ctrl + shift + p ,選擇 c/c++:Edit configuration(json)

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceFolder}/**"
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE"
            ],
            "cStandard": "gnu17",
            "cppStandard": "gnu++14",
            "intelliSenseMode": "windows-gcc-x64",
            "configurationProvider": "ms-vscode.cmake-tools",
            "compilerPath": "C:/cygwin64/bin/g++.exe"
        }
    ],
    "version": 4
}


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM