A Python script to automatically generate the necessary extraPaths
configuration for VSCode's settings.json
.
Tested with ROS Noetic.
- Source ROS:
source /opt/ros/ROS_DISTRO/setup.bash
- Run script:
python3 gen_settings_json.py /path/to/workspace1 /path/to/workspace2 ...
- Copy the JSON snippet output by the script to VSCode's
settings.json
, and save.