npm install
# compile typescript
npm run compile
# package extension
if ! command -v vsce &>/dev/null; then
npm install -g @vscode/vsce
fi
vsce package
# install to VSCode
code --install-extension *.vsix
- Open Visual Studio Code.
- In the Activity Bar on the left, click the Extensions icon (looks like four squares).
- At the top right of the Extensions view, click the ellipsis (…) menu.
- Choose “Install from VSIX…”.
- A file picker dialog will appear. Browse to the location of your
.vsix
file (for examplechrome-layer-0.0.1.vsix
). - Select the file and click Open.
- VSCode will install the extension. Once installed, you may need to click Reload to activate it.