VScode config files

This commit is contained in:
Ben
2018-12-07 19:00:02 +00:00
parent b786ded5b7
commit cb5914e0c0
3 changed files with 87 additions and 2 deletions

27
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,27 @@
{
// 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}/bin/resource-monitor",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}

38
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,38 @@
{
"files.associations": {
"iostream": "cpp",
"thread": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"cstddef": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"array": "cpp",
"atomic": "cpp",
"*.tcc": "cpp",
"chrono": "cpp",
"cmath": "cpp",
"cstdint": "cpp",
"exception": "cpp",
"fstream": "cpp",
"initializer_list": "cpp",
"iosfwd": "cpp",
"istream": "cpp",
"limits": "cpp",
"memory": "cpp",
"new": "cpp",
"ostream": "cpp",
"ratio": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"typeinfo": "cpp",
"utility": "cpp"
}
}

24
.vscode/tasks.json vendored
View File

@@ -4,9 +4,29 @@
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"label": "echo", "label": "Cmake and build",
"type": "shell", "type": "shell",
"command": "echo Hello" "command": "cmake .; make"
},
{
"label": "build",
"type": "shell",
"command": "make"
},
{
"label": "build and run",
"type": "shell",
"command": "make; cd bin; ./resource-monitor; cd .."
},
{
"label": "Cmake, build and run",
"type": "shell",
"command": "cmake .; make; cd bin; ./resource-monitor; cd .."
},
{
"label": "run",
"type": "shell",
"command": "cd bin; ./resource-monitor; cd .."
} }
] ]
} }