Skip to content

Instantly share code, notes, and snippets.

@Muldec
Created March 25, 2019 08:39
Show Gist options
  • Save Muldec/0cc6a215611826dd23bca74c55de65c2 to your computer and use it in GitHub Desktop.
Save Muldec/0cc6a215611826dd23bca74c55de65c2 to your computer and use it in GitHub Desktop.
Install a VS Code extension from repo instead of martkeplace

Solution from https://stackoverflow.com/questions/50714638/install-extension-from-a-specific-repo-branch-on-github

Install vsce: Make sure you have Node.js installed. Then run:

npm install -g vsce

Check out the GitHub repo/branch you want.

Depending on the project, you may need to install its dependencies (npm install or whatever package manager you use). Some can be packaged without dependencies.

Run the following in the root of the project (see the official docs for more detail about the process):

vsce package  # Generates a .vsix file
code --install-extension my-extension-0.0.1.vsix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment