Support Visual Studio Code

This commit is contained in:
Carsten Sonne Larsen 2018-08-05 21:45:38 +02:00
rodzic 4c6ae02156
commit b3d4d61e9d
4 zmienionych plików z 109 dodań i 0 usunięć

12
.vscode/keybindings.json vendored Normal file
Wyświetl plik

@ -0,0 +1,12 @@
[
{
"key": "ctrl+shift+c",
"command": "workbench.action.tasks.runTask",
"args": "Clean all"
},
{
"key": "ctrl+t",
"command": "workbench.action.tasks.runTask",
"args": "Run tests"
}
]

27
.vscode/launch.json vendored Normal file
Wyświetl plik

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

19
.vscode/settings.json vendored Normal file
Wyświetl plik

@ -0,0 +1,19 @@
{
"cSpell.words": [
"amath",
"carsten",
"innolan",
"sonne"
],
"files.associations": {
"type_traits": "cpp",
"cctype": "cpp",
"cstdarg": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstdint": "cpp",
"exception": "cpp",
"new": "cpp",
"typeinfo": "cpp"
}
}

51
.vscode/tasks.json vendored Normal file
Wyświetl plik

@ -0,0 +1,51 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Open shell",
"type": "shell",
"command": "${workspaceFolder}/amath --shell",
"problemMatcher": []
},
{
"label": "Build all",
"command": "make",
"args": [
"all"
],
"options": {
"cwd": "${workspaceRoot}"
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
]
},
{
"label": "Clean all",
"command": "make",
"args": [
"clean"
],
"options": {
"cwd": "${workspaceRoot}"
},
"problemMatcher": []
},
{
"label": "Run tests",
"type": "shell",
"command": "${workspaceFolder}/amath --test",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
}