Last active
June 26, 2023 13:07
-
-
Save watamario15/1ba07111b1b8cdf6fbb2fa5c375b4c43 to your computer and use it in GitHub Desktop.
VSCode C/C++ Settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BasedOnStyle: Google | |
ColumnLimit: 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "MinGW_w64 AMD64", | |
"includePath": [ | |
"${workspaceFolder}/**" | |
], | |
"compilerPath": "/usr/bin/x86_64-w64-mingw32-g++", | |
"cStandard": "gnu17", | |
"cppStandard": "gnu++20", | |
"intelliSenseMode": "windows-gcc-x64", | |
"defines": [ | |
"UNICODE", | |
"_UNICODE" | |
] | |
}, | |
{ | |
"name": "MSVC AMD64", | |
"includePath": [ | |
"${workspaceFolder}/**" | |
], | |
"compilerPath": "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.33.31629/bin/Hostx64/x64/cl.exe", | |
"windowsSdkVersion": "10.0.19041.0", | |
"cStandard": "c17", | |
"cppStandard": "c++20", | |
"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++20", | |
"intelliSenseMode": "windows-gcc-x86", | |
"defines": [ | |
"UNICODE", | |
"_UNICODE" | |
] | |
}, | |
{ | |
"name": "MSVC IA-32", | |
"includePath": [ | |
"${workspaceFolder}/**" | |
], | |
"compilerPath": "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.33.31629/bin/Hostx64/x86/cl.exe", | |
"windowsSdkVersion": "10.0.19041.0", | |
"cStandard": "c17", | |
"cppStandard": "c++20", | |
"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": "Native GCC", | |
"includePath": [ | |
"${workspaceFolder}/**" | |
], | |
"compilerPath": "/usr/bin/g++", | |
"cStandard": "gnu17", | |
"cppStandard": "gnu++20", | |
"intelliSenseMode": "linux-gcc-x64" | |
}, | |
{ | |
"name": "Homebrew GCC 13", | |
"includePath": [ | |
"${workspaceFolder}/**" | |
], | |
"compilerPath": "/opt/homebrew/bin/g++-13", | |
"cStandard": "gnu23", | |
"cppStandard": "gnu++23", | |
"intelliSenseMode": "macos-gcc-arm64" | |
}, | |
{ | |
"name": "CeGCC", | |
"includePath": [ | |
"${workspaceFolder}/**" | |
], | |
"compilerPath": "/opt/cegcc/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", | |
"_WIN32_WCE=400", | |
"ARMV4I" | |
] | |
} | |
], | |
"version": 4 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// IntelliSense を使用して利用可能な属性を学べます。 | |
// 既存の属性の説明をホバーして表示します。 | |
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Native 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] Native GCC", | |
"setupCommands": [ | |
{ | |
"description": "Enable pretty-printing for gdb", | |
"text": "-enable-pretty-printing", | |
"ignoreFailures": true | |
} | |
] | |
}, | |
{ | |
"name": "Native 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] Native GCC", | |
"setupCommands": [ | |
{ | |
"description": "Enable pretty-printing for gdb", | |
"text": "-enable-pretty-printing", | |
"ignoreFailures": true | |
} | |
] | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"type": "cppbuild", | |
"label": "[Current C++ File] MinGW_w64 AMD64", | |
"command": "/usr/bin/x86_64-w64-mingw32-g++", | |
"args": [ | |
"-Wall", | |
"-Wextra", | |
"-O3", | |
"-std=gnu++2a", | |
"-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", | |
"-Wextra", | |
"-O3", | |
"-std=gnu++2a", | |
"-lm", | |
"-static", | |
"-s", | |
"${file}", | |
"-o", | |
"${fileDirname}/${fileBasenameNoExtension}_ia32.exe" | |
], | |
"options": { | |
"cwd": "${fileDirname}" | |
}, | |
"problemMatcher": [ | |
"$gcc" | |
], | |
"group": "build", | |
"detail": "i686-w64-mingw32-g++" | |
}, | |
{ | |
"type": "cppbuild", | |
"label": "[Win32 C++ File] MinGW_w64 AMD64", | |
"command": "/usr/bin/x86_64-w64-mingw32-g++", | |
"args": [ | |
"-Wall", | |
"-Wextra", | |
"-O3", | |
"-std=gnu++2a", | |
"-lm", | |
"-lcomctl32", | |
"-lwinmm", | |
"-mwindows", | |
"-municode", | |
"-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": "[Win32 C++ File] MinGW_w64 IA-32", | |
"command": "/usr/bin/i686-w64-mingw32-g++", | |
"args": [ | |
"-Wall", | |
"-Wextra", | |
"-O3", | |
"-std=gnu++2a", | |
"-lm", | |
"-lcomctl32", | |
"-lwinmm", | |
"-mwindows", | |
"-municode", | |
"-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] Native GCC", | |
"command": "/usr/bin/g++", | |
"args": [ | |
"-Wall", | |
"-Wextra", | |
"-O3", | |
"-std=gnu++2a", | |
"-lm", | |
"-static", | |
"-s", | |
"${file}", | |
"-o", | |
"${fileDirname}/${fileBasenameNoExtension}" | |
], | |
"options": { | |
"cwd": "${fileDirname}" | |
}, | |
"problemMatcher": [ | |
"$gcc" | |
], | |
"group": "build", | |
"detail": "g++" | |
}, | |
{ | |
"type": "cppbuild", | |
"label": "[Current C++ File] Homebrew GCC 13", | |
"command": "/opt/homebrew/bin/g++-13", | |
"args": [ | |
"-Wall", | |
"-Wextra", | |
"-O3", | |
"-std=gnu++23", | |
"-lm", | |
"${file}", | |
"-o", | |
"${fileDirname}/${fileBasenameNoExtension}" | |
], | |
"options": { | |
"cwd": "${fileDirname}" | |
}, | |
"problemMatcher": [ | |
"$gcc" | |
], | |
"group": "build", | |
"detail": "g++" | |
}, | |
{ | |
"type": "cppbuild", | |
"label": "[Debug Current C++ File] Native GCC", | |
"command": "/usr/bin/g++", | |
"args": [ | |
"-g", | |
"-Wall", | |
"-Wextra", | |
"-std=gnu++2a", | |
"-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", | |
"-Wextra", | |
"-O3", | |
"-std=gnu++2a", | |
"-march=armv5tej", | |
"-mcpu=arm926ej-s", | |
"-lcommctrl", | |
"-lcommdlg", | |
"-lmmtimer", | |
"-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", | |
"-Wextra", | |
"-O3", | |
"-std=gnu2x", | |
"-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": "[Win32 C File] MinGW_w64 AMD64", | |
"command": "/usr/bin/x86_64-w64-mingw32-gcc", | |
"args": [ | |
"-Wall", | |
"-Wextra", | |
"-O3", | |
"-std=gnu2x", | |
"-lm", | |
"-lcomctl32", | |
"-lwinmm", | |
"-mwindows", | |
"-municode", | |
"-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", | |
"-Wextra", | |
"-O3", | |
"-std=gnu2x", | |
"-lm", | |
"-static", | |
"-s", | |
"${file}", | |
"-o", | |
"${fileDirname}/${fileBasenameNoExtension}_ia32.exe" | |
], | |
"options": { | |
"cwd": "${fileDirname}" | |
}, | |
"problemMatcher": [ | |
"$gcc" | |
], | |
"group": "build", | |
"detail": "i686-w64-mingw32-gcc" | |
}, | |
{ | |
"type": "cppbuild", | |
"label": "[Win32 C File] MinGW_w64 IA-32", | |
"command": "/usr/bin/i686-w64-mingw32-gcc", | |
"args": [ | |
"-Wall", | |
"-Wextra", | |
"-O3", | |
"-std=gnu2x", | |
"-lm", | |
"-lcomctl32", | |
"-lwinmm", | |
"-mwindows", | |
"-municode", | |
"-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] Native GCC", | |
"command": "/usr/bin/gcc", | |
"args": [ | |
"-Wall", | |
"-Wextra", | |
"-O3", | |
"-std=gnu2x", | |
"-lm", | |
"-static", | |
"-s", | |
"${file}", | |
"-o", | |
"${fileDirname}/${fileBasenameNoExtension}" | |
], | |
"options": { | |
"cwd": "${fileDirname}" | |
}, | |
"problemMatcher": [ | |
"$gcc" | |
], | |
"group": "build", | |
"detail": "gcc" | |
}, | |
{ | |
"type": "cppbuild", | |
"label": "[Debug Current C File] Native GCC", | |
"command": "/usr/bin/gcc", | |
"args": [ | |
"-g", | |
"-Wall", | |
"-Wextra", | |
"-std=gnu2x", | |
"-lm", | |
"-static", | |
"${file}", | |
"-o", | |
"${fileDirname}/${fileBasenameNoExtension}" | |
], | |
"options": { | |
"cwd": "${fileDirname}" | |
}, | |
"problemMatcher": [ | |
"$gcc" | |
], | |
"group": "build", | |
"detail": "Debug gcc" | |
}, | |
{ | |
"type": "cppbuild", | |
"label": "[Current C File] Native GCC", | |
"command": "/opt/homebrew/bin/gcc-13", | |
"args": [ | |
"-Wall", | |
"-Wextra", | |
"-O3", | |
"-std=gnu2x", | |
"-lm", | |
"${file}", | |
"-o", | |
"${fileDirname}/${fileBasenameNoExtension}" | |
], | |
"options": { | |
"cwd": "${fileDirname}" | |
}, | |
"problemMatcher": [ | |
"$gcc" | |
], | |
"group": "build", | |
"detail": "gcc" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment