Add vscode settings

This commit is contained in:
Jaap Haitsma 2020-05-26 21:29:28 -04:00
parent 744372e551
commit ceb1241735
3 changed files with 86 additions and 0 deletions

28
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,28 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/inspect",
"args": ["../Downloads/img3.jpg"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}

6
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,6 @@
{
"files.associations": {
"*.idl": "cpp"
},
"C_Cpp.errorSquiggles": "Enabled"
}

52
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,52 @@
{
"version": "2.0.0",
"command": "make",
"type": "shell",
"presentation": {
"reveal": "always"
},
// Use the standard less compilation problem matcher.
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["relative", "${workspaceRoot}"],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
"tasks": [
{
"label": "Debug build",
"group": {
"kind": "build",
"isDefault": true
},
"options": {
"env": {
"CFLAGS": "-g -Wall -fPIC",
}
},
"args": ["all"],
},
{
"label": "Release build",
"options": {
"env": {
"CFLAGS": "-O3 -Wall -fPIC",
}
},
"args": ["all"]
},
{
"label": "Clean",
"args": ["clean"]
},
]
}