Browse Source

Support Visual Studio Code

tags/1.8.4
parent
commit
b3d4d61e9d
4 changed files with 109 additions and 0 deletions
  1. 12
    0
      .vscode/keybindings.json
  2. 27
    0
      .vscode/launch.json
  3. 19
    0
      .vscode/settings.json
  4. 51
    0
      .vscode/tasks.json

+ 12
- 0
.vscode/keybindings.json View File

@@ -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
- 0
.vscode/launch.json 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}/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
- 0
.vscode/settings.json View File

@@ -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
- 0
.vscode/tasks.json View File

@@ -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"
}
}
]
}

Loading…
Cancel
Save