isaid
isaid

Reputation: 75

How can I install my own Extension? Vscode

I made my own Extension pack using Yeoman Generator, but I can't figure out how to install it on my vscode.

Maybe if I export my extension pack to the Marketplace it will be possible, but I dont want to do that

Upvotes: 5

Views: 5444

Answers (2)

Matt Bierner
Matt Bierner

Reputation: 65223

You can package an extension into a vsix file that you can install yourself or distribute to others.

To package your extension, in your extension directory run:

$ vsce package

This will produce a vsix file called something like my-extension-0.0.1.vsix.

Then run code --install-extension my-extension-0.0.1.vsix from the command line or use the Install from VSIX command in the extensions view (under the ...) to install your extension:

Install from vsix

Upvotes: 10

Matt
Matt

Reputation: 3760

You can manually install your extension by placing the extension directory in /home/your-username/.vscode/extensions/ (in OS X / Linux) or the equivalent directory in Windows (just guessing but maybe /Users/your-username/.vscode).

Upvotes: 5

Related Questions