Skip to content

owtaylor/toolbox-vscode

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •