Utils for vscode
This generates a dummy .gitmodules
from colcon workspace file(.repos
).
- Python 3.8+
- pyyaml
sudo apt install python3
pip3 install pyyaml
# Create .code-workspace
wget -P /tmp https://raw.githubusercontent.com/kenji-miyake/vscode-utils/main/repos2gitmodules.py
python3 /tmp/repos2gitmodules.py {path-to-your-repos-file}
# Open .code-workspace with VSCode
code {path-to-your-colcon-workspace}
This generates a VSCode workspace file(.code-workspace
) from colcon workspace file(.repos
).
- Python 3.8+
- pyyaml
sudo apt install python3
pip3 install pyyaml
# Create .code-workspace
wget -P /tmp https://raw.githubusercontent.com/kenji-miyake/vscode-utils/main/repos2workspace.py
python3 /tmp/repos2workspace.py {path-to-your-repos-file}
# Open .code-workspace with VSCode
code {path-to-the-generated-code-workspace-file}
This is a recommended config of C/C++ for colcon users.
cd {path-to-your-colcon-workspace}/.vscode
mv c_cpp_properties.json c_cpp_properties.json.old
wget https://raw.githubusercontent.com/kenji-miyake/vscode-utils/main/c_cpp_properties.json -O c_cpp_properties.json