ROS2 C++ VSCode setup
Config VScode for ROS2 cpp package using
Configuration
The c_cpp_properties.json
file configures IntelliSense, code completion, and error checking for C/C++ projects in VS Code.
c_cpp_properties.json for gcc
for gcc compiler- includePath: Directories for header file lookup. Includes ROS headers and your workspace’s src folder.
- defines: Preprocessor macros (empty in this config).
- cStandard and cppStandard: C and C++ language standards (c17 and c++17). ros jazzy build with this standard
- intelliSenseMode: IntelliSense engine mode (linux-gcc-x64 for Linux GCC).
Build
Tasks
.vscode/tasks.json | |
---|---|