owtaylor / toolbox-vscode

Toolbox Visual Studio Code integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toolbox Visual Studio Code integration

This repository is intended for scripts and hooks to integrate Toolbox with Visual Studio Code.

In particular, it provides a code.sh script that:

  • If necessary, prompts to install the Flatpak of Visual Studio Code
  • If necessary, configures the current toolbox container to work with the Remote Containers Visual Studio Code extension.
  • Opens a VSCode window using the remaining command line arguments

Installation

git clone https://github.com/owtaylor/toolbox-vscode.git
cd toolbox-vscode
[ -d ~/.local/bin ] || mkdir ~/.local/bin
ln -s "$PWD/code.sh" ~/.local/bin/code

Usage

toolbox enter
cd ~/Source/myproject
code .

To recreate the container configuration (perhaps after updating this repository)

code --toolbox-reset-configuration .

Credits

The configuration that code.sh sets up was largely figured out by Laércio de Sousa (lbssousa)

Related issues

About

Toolbox Visual Studio Code integration

License:Apache License 2.0


Languages

Language:Shell 98.6%Language:Dockerfile 1.4%