kenji-miyake / vscode-utils

Utils for vscode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vscode-utils

Utils for vscode

repos2gitmodules.py

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}

repos2workspace.py

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}

c_cpp_properties.json

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

About

Utils for vscode

License:MIT License


Languages

Language:Python 100.0%