Skip to content

Instantly share code, notes, and snippets.

@fmunirdev
Last active October 20, 2019 21:17
Show Gist options
  • Save fmunirdev/57cf245bec5145343176302dfea99b72 to your computer and use it in GitHub Desktop.
Save fmunirdev/57cf245bec5145343176302dfea99b72 to your computer and use it in GitHub Desktop.
Using Mingw-w64 in VS Code
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**", "${vcpkgRoot}/x86-windows/include"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"intelliSenseMode": "${default}",
"cppStandard": "c++20",
"cStandard": "c11",
"compilerPath": "C:/MinGW/bin/g++.exe"
}
],
"version": 4
}
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "C:\\MinGW\\bin\\gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "build active cpp file",
"command": "g++",
"args": [
"-g",
"${file}",
"-o",
"${workspaceFolder}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "C:\\MinGW\\bin"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment