Skip to content

Latest commit

 

History

History
75 lines (49 loc) · 1.7 KB

README.md

File metadata and controls

75 lines (49 loc) · 1.7 KB

vscode-utils

Utils for vscode

Overview

This generates a dummy .gitmodules from colcon workspace file(.repos).

Prerequisites

  • Python 3.8+
  • pyyaml

Ubuntu

sudo apt install python3
pip3 install pyyaml

Usage

# 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}

Overview

This generates a VSCode workspace file(.code-workspace) from colcon workspace file(.repos).

Prerequisites

  • Python 3.8+
  • pyyaml

Ubuntu

sudo apt install python3
pip3 install pyyaml

Usage

# 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}

Overview

This is a recommended config of C/C++ for colcon users.

Usage

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