Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install a VSCode Extension from Source Code

So i was using SFTP but the maintainer didnt update it anymore and it stopped working.

The community thankfully took over and fixed it here: https://github.com/viperet/vscode-sftp-revived

I only know how to install a Extension by searching it in VSCode and press install - but have no clue how to do it with the source code.

I did Google & SOF research but wasnt successfull.

Can someone point me into the right direction ?

Kind regards

like image 728
Isabella Love Avatar asked Aug 01 '26 01:08

Isabella Love


1 Answers

If you don't have a published vsix file to work with, for example if the source code has had recent changes that have not yet been published in a release, you can do the following to package the vsix and install it yourself:

  1. Install node.js if you don't have it already, you can download binaries for your operating system here: https://nodejs.org/  
  2. Install the Visual Studio Code Extensions cli tool:
npm install -g @vscode/vsce
  1. Clone the source code repository to your local machine

  2. In your shell, change directory to the repository. Install dependencies as needed, for example using npm install

  3. Run the following: vsce package. This will produce a .vsix file in your working directory.

  4. In VS Code, open the extensions pane and in the menu, choose "Install from VSIX..."

screenshot of vscode showing the install from vsix option

  1. Browse to the location of the new vsix file. After it installs, you'll be prompted to reload VS Code, choose to reload.

More reading: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#vsce

like image 59
Luke Avatar answered Aug 02 '26 17:08

Luke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!