Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
VSCode C/C++ Settings
{
"configurations": [
{
"name": "MinGW_w64 AMD64",
"includePath": [
"${workspaceFolder}/**"
],
"compilerPath": "/usr/bin/x86_64-w64-mingw32-g++",
"cStandard": "gnu17",
"cppStandard": "gnu++17",
"intelliSenseMode": "windows-gcc-x64",
"defines": [
"UNICODE",
"_UNICODE"
]
},
{
"name": "MSVC AMD64",
"includePath": [
"${workspaceFolder}/**"
],
"compilerPath": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe",
"windowsSdkVersion": "10.0.19041.0",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x64",
"defines": [
"UNICODE",
"_UNICODE"
]
},
{
"name": "MinGW_w64 IA-32",
"includePath": [
"${workspaceFolder}/**"
],
"compilerPath": "/usr/bin/i686-w64-mingw32-g++",
"cStandard": "gnu17",
"cppStandard": "gnu++17",
"intelliSenseMode": "windows-gcc-x86",
"defines": [
"UNICODE",
"_UNICODE"
]
},
{
"name": "MSVC IA-32",
"includePath": [
"${workspaceFolder}/**"
],
"compilerPath": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x86/cl.exe",
"windowsSdkVersion": "10.0.19041.0",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "windows-msvc-x86",
"defines": [
"UNICODE",
"_UNICODE"
]
},
{
"name": "BCC IA-32",
"includePath": [
"C:/bcc55/Include",
"${workspaceFolder}/**"
],
"compilerPath": "C:/bcc55/Bin/bcc32.exe",
"cStandard": "c89",
"cppStandard": "c++98",
"intelliSenseMode": "windows-clang-x86",
"defines": [
"UNICODE",
"_UNICODE"
]
},
{
"name": "GCC AMD64",
"includePath": [
"${workspaceFolder}/**"
],
"compilerPath": "/usr/bin/g++",
"cStandard": "gnu17",
"cppStandard": "gnu++17",
"intelliSenseMode": "linux-gcc-x64"
},
{
"name": "CeGCC",
"includePath": [
"${workspaceFolder}/**"
],
"compilerPath": "/usr/bin/arm-mingw32ce-g++",
"cStandard": "gnu17",
"cppStandard": "gnu++17",
"intelliSenseMode": "windows-gcc-arm",
"defines": [
"UNICODE",
"_UNICODE"
]
},
{
"name": "eVC4",
"includePath": [
"C:/Program Files (x86)/Windows CE Tools/wce400/STANDARDSDK/Include/Armv4i",
"C:/Program Files (x86)/Windows CE Tools/wce400/STANDARDSDK/Mfc/Include",
"${workspaceFolder}/**"
],
"compilerPath": "C:/Program Files (x86)/Microsoft eMbedded C++ 4.0/EVC/wce420/bin/CL.EXE",
"cStandard": "c89",
"cppStandard": "c++98",
"intelliSenseMode": "windows-msvc-arm",
"defines": [
"UNICODE",
"_UNICODE",
"UNDER_CE",
"ARMV4I"
]
}
],
"version": 4
}
{
// IntelliSense を使用して利用可能な属性を学べます。
// 既存の属性の説明をホバーして表示します。
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Linux C++ GDB",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"preLaunchTask": "[Debug Current C++ File] Linux GCC AMD64",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "Linux C GDB",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb",
"preLaunchTask": "[Debug Current C File] Linux GCC AMD64",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"type": "cppbuild",
"label": "[Current C++ File] MinGW_w64 AMD64",
"command": "/usr/bin/x86_64-w64-mingw32-g++",
"args": [
"-Wall",
"-O2",
"-std=gnu++17",
"-lm",
"-static",
"-s",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}_amd64.exe"
],
"options": {"cwd": "${fileDirname}"},
"problemMatcher": ["$gcc"],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "x86_64-w64-mingw32-g++"
},
{
"type": "cppbuild",
"label": "[Current C++ File] MinGW_w64 IA-32",
"command": "/usr/bin/i686-w64-mingw32-g++",
"args": [
"-Wall",
"-O2",
"-std=gnu++17",
"-lm",
"-static",
"-s",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}_ia32.exe"
],
"options": {"cwd": "${fileDirname}"},
"problemMatcher": ["$gcc"],
"group": "build",
"detail": "i686-w64-mingw32-g++"
},
{
"type": "cppbuild",
"label": "[Current C++ File] Linux GCC AMD64",
"command": "/usr/bin/g++",
"args": [
"-Wall",
"-O2",
"-std=gnu++17",
"-lm",
"-static",
"-s",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {"cwd": "${fileDirname}"},
"problemMatcher": ["$gcc"],
"group": "build",
"detail": "g++"
},
{
"type": "cppbuild",
"label": "[Debug Current C++ File] Linux GCC AMD64",
"command": "/usr/bin/g++",
"args": [
"-Wall",
"-std=gnu++17",
"-lm",
"-static",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {"cwd": "${fileDirname}"},
"problemMatcher": ["$gcc"],
"group": "build",
"detail": "Debug g++"
},
{
"type": "cppbuild",
"label": "[Current C++ File] CeGCC",
"command": "/usr/bin/arm-mingw32ce-g++",
"args": [
"-Wall",
"-O2",
"-std=gnu++17",
"-march=armv5tej",
"-mcpu=arm926ej-s",
"-lcommctrl",
"-lcommdlg",
"-lm",
"-static",
"-s",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}.exe"
],
"options": {"cwd": "${fileDirname}"},
"problemMatcher": ["$gcc"],
"group": "build",
"detail": "arm-mingw32ce-g++"
},
{
"type": "cppbuild",
"label": "[Current C File] MinGW_w64 AMD64",
"command": "/usr/bin/x86_64-w64-mingw32-gcc",
"args": [
"-Wall",
"-O2",
"-std=gnu18",
"-lm",
"-static",
"-s",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}_amd64.exe"
],
"options": {"cwd": "${fileDirname}"},
"problemMatcher": ["$gcc"],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "x86_64-w64-mingw32-gcc"
},
{
"type": "cppbuild",
"label": "[Current C File] MinGW_w64 IA-32",
"command": "/usr/bin/i686-w64-mingw32-gcc",
"args": [
"-Wall",
"-O2",
"-std=gnu18",
"-lm",
"-static",
"-s",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}_ia32.exe"
],
"options": {"cwd": "${fileDirname}"},
"problemMatcher": ["$gcc"],
"group": "build",
"detail": "i686-w64-mingw32-gcc"
},
{
"type": "cppbuild",
"label": "[Current C File] Linux GCC AMD64",
"command": "/usr/bin/gcc",
"args": [
"-Wall",
"-O2",
"-std=gnu18",
"-static",
"-s",
"-lm",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {"cwd": "${fileDirname}"},
"problemMatcher": ["$gcc"],
"group": "build",
"detail": "gcc"
},
{
"type": "cppbuild",
"label": "[Debug Current C File] Linux GCC AMD64",
"command": "/usr/bin/gcc",
"args": [
"-g",
"-Wall",
"-std=gnu18",
"-lm",
"-static",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {"cwd": "${fileDirname}"},
"problemMatcher": ["$gcc"],
"group": "build",
"detail": "Debug gcc"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment