vscode initial configuration (#10911)

This commit is contained in:
Daniel Agar 2018-12-04 23:11:36 -05:00 committed by GitHub
parent 3a036021ba
commit a5fa3eda30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 122 additions and 2 deletions

2
.gitignore vendored
View File

@ -52,8 +52,6 @@ GTAGS
.idea
cmake-build-*/
.vscode
posix-configs/SITL/init/test/*_generated
/airframes.md

10
.vscode/cmake-kits.json vendored Normal file
View File

@ -0,0 +1,10 @@
[
{
"name": "arm-none-eabi-gcc",
"toolchainFile": "cmake/toolchains/Toolchain-arm-none-eabi.cmake"
},
{
"name": "native",
"toolchainFile": "cmake/toolchains/Toolchain-native.cmake"
}
]

33
.vscode/cmake-variants.yaml vendored Normal file
View File

@ -0,0 +1,33 @@
CONFIG:
default: posix_sitl_default
choices:
posix_sitl_default:
short: sitl
buildType: RelWithDebInfo
settings:
CONFIG: posix_sitl_default
nuttx_px4fmu-v2_default:
short: px4fmu-v2
buildType: MinRelSize
settings:
CONFIG: nuttx_px4fmu-v2_default
nuttx_px4fmu-v3_default:
short: px4fmu-v3
buildType: MinRelSize
settings:
CONFIG: nuttx_px4fmu-v3_default
nuttx_px4fmu-v4_default:
short: px4fmu-v4
buildType: MinRelSize
settings:
CONFIG: nuttx_px4fmu-v4_default
nuttx_px4fmu-v4pro_default:
short: px4fmu-v4pro
buildType: MinRelSize
settings:
CONFIG: nuttx_px4fmu-v4pro_default
nuttx_px4fmu-v5_default:
short: px4fmu-v5
buildType: MinRelSize
settings:
CONFIG: nuttx_px4fmu-v5_default

11
.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,11 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"ms-vscode.cpptools",
"github.vscode-pull-request-github",
"chiehyu.vscode-astyle",
"marus25.cortex-debug",
"vector-of-bool.cmake-tools"
]
}

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

@ -0,0 +1,44 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "(lldb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${command:cmake.launchTargetPath}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "lldb",
},
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
// Resolved by CMake Tools:
"program": "${command:cmake.launchTargetPath}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"externalConsole": true,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
{
"cwd": "${workspaceRoot}",
"executable": "${command:cmake.launchTargetPath}",
"name": "Debug Microcontroller",
"request": "launch",
"type": "cortex-debug",
"servertype": "jlink"
},
]
}

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

@ -0,0 +1,8 @@
{
"editor.insertSpaces": false,
"editor.wordWrapColumn": 120,
"astyle.astylerc": "${workspaceFolder}/Tools/astyle/astylerc",
"C_Cpp.default.cppStandard": "c++11",
"C_Cpp.default.cStandard": "c99",
"cmake.buildDirectory": "${workspaceRoot}/build/${variant:CONFIG}",
}

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

@ -0,0 +1,16 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "jmavsim",
"type": "shell",
"command": "make posix_sitl_default jmavsim",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}