Skip to content

Commit

Permalink
Add c_cpp_properties.json and tasks.json to .vscode for ros2
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjong committed Jul 1, 2024
1 parent 5256c13 commit 5d25192
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"configurations": [
{
"name": "Linux",
"includePath": ["${workspaceFolder}/ros_ws/**", "/opt/ros/humble/include/**"],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "clang-x64"
}
],
"version": 4
}

15 changes: 15 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "colcon build --cmake-args '-DCMAKE_BUILD_TYPE=Debug'"
},
{
"label": "test",
"type": "shell",
"command": "colcon test && colcon test-result"
}
]
}

0 comments on commit 5d25192

Please sign in to comment.