athackst / vscode_ros2_workspace

A template for using VSCode as an IDE for ROS2 development.
https://althack.dev/vscode_ros2_workspace
Apache License 2.0
857 stars 177 forks source link

add `source colcon-argcomplete.bash` somewhere #49

Closed SubaruArai closed 1 year ago

SubaruArai commented 1 year ago

I'd like to add tab completion for colcon. It should be possible to do so by adding this line to the end of .devcontainer/DockerFile:

RUN echo "source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash" >> /home/ros/.bashrc

Is this a good approach? It's my first time trying to develop in a devcontainer, so please tell me it there's a better solution.

athackst commented 1 year ago

Great idea, I added it to the base docker images so that they'd all benefit from this idea