chore: Add VSCode config files & editor settings

This commit is contained in:
Francois Best 2018-10-11 10:32:26 +02:00
parent 83ad031ee6
commit 04ae12d9ad
5 changed files with 52 additions and 5 deletions

9
.editorconfig Normal file
View File

@ -0,0 +1,9 @@
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

3
.vscode/arduino.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"board": "arduino:avr:leonardo"
}

View File

@ -3,6 +3,8 @@
{
"name": "Mac",
"includePath": [
"/Applications/Arduino.app/Contents/Java/tools/**",
"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/**",
"/Applications/Arduino.app/Contents/Java/hardware/tools/avr/include",
"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino",
"${workspaceRoot}"
@ -20,6 +22,9 @@
"macFrameworkPath": [
"/System/Library/Frameworks",
"/Library/Frameworks"
],
"forcedInclude": [
"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h"
]
},
{
@ -55,5 +60,5 @@
"intelliSenseMode": "msvc-x64"
}
],
"version": 3
}
"version": 4
}

View File

@ -1,4 +1,6 @@
// Place your settings in this file to overwrite default and user settings.
{
"cmake.experimental.enableTargetDebugging": true
}
"files.associations": {
"cstddef": "cpp",
"ostream": "cpp"
}
}

28
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,28 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build",
"command": "make",
"args": ["all"],
"options": {
"cwd": "${workspaceRoot}/build"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Run Tests",
"command": "${workspaceRoot}/build/test/unit-tests/unit-tests",
"group": {
"kind": "test",
"isDefault": true
},
"dependsOn": ["Build"]
}
]
}