• Stars
    star
    245
  • Rank 165,304 (Top 4 %)
  • Language
    Shell
  • License
    Apache License 2.0
  • Created over 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Toolbox Visual Studio Code integration

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