This repository contains basic settings, instructions and recommendations for setting up workspace to make work with ROS easy.
- Just clone it into your workspace
git clone https://github.com/pktiuk/vscode_ros_config.git .vscode
- Open workspace using vscode
- Install recommended plugins
- (not recommended if you have installed all dependencies) Install ROS dependencies by pressing
Ctrl+Shift+P
and writing:ROS: Install ROS Dependencies for this workspace
- (optional, but recommended) Build your workspace (in regular way by terminal or using Build Task)
- Using vscode commands (
Ctrl+Shift+P
) run (it ensures proper autocompletion support):ROS: Update C++ properties
ROS: Update Python Path
- For better support of C++ completion generate
compile_commands.json
catkin_make -DCMAKE_EXPORT_COMPILE_COMMANDS=1
- Restart vscode, it should ask you about using newly generated
compile_commands.json