Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.79 KB

README.md

File metadata and controls

45 lines (35 loc) · 1.79 KB

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