How can I install Visual Studio Code extensions offline?

blachniet

I have installed Visual Studio Code on a machine that is not, and cannot be, connected to the Internet. According to the documentation, I can install an extension from the command line if I have the .vsix, but I don't know how to get the .vsix from the marketplace.

How can I download the .vsix for an extension hosted on the marketplace?

t3chb0t

UPDATE 2017-12-13

You can now download the extension directly from the marketplace.

Enter image description here

As of Visual Studio Code 1.7.1 dragging or opening the extension does not work any more. In order to install it manually you need to:

  • open the extensions sidebar
  • click on the ellipsis in the right upper corner
  • choose Install from VSIX

Install from VSIX...


Old Method

According to the documentation it is possible to download an extension directly:

An extension's direct download URL is in the form:

https://${publisher}.gallery.vsassets.io/_apis/public/gallery/publisher/${publisher}/extension/${extension name}/${version}/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage

This means that in order to download the extension you need to know

  • the publisher name
  • the version
  • the extension name

You can find all this information in the URL.

Example

Here's an example for downloading an installing the C# v1.3.0 extension:

Publisher, Extension and Version

You can find the publisher and the extension names on the extension's homepage inside its URL:

https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp

Here the publisher is ms-vscode and the extension name is csharp.

The version can be found on the right side in the More Info area.

To download it you need to create a link from the template above:

https://ms-vscode.gallery.vsassets.io/_apis/public/gallery/publisher/ms-vscode/extension/csharp/1.3.0/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage

All packages will have the same name Microsoft.VisualStudio.Services.VSIXPackage, so you'll need to rename it after downloading if you want to know what package it was later.

Installation

In order to install the extension

  • Rename the file and give it the *.vsix extension
  • Open Visual Studio Code, go to menu FileOpen File... or Ctrl + O and select the .vsix file
  • If everything went fine, you should see this message at the top of the window:

Extension was successfully installed. Restart to enable it.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I "install" fonts to use in Visual Studio Code?

From Dev

How can I "install" fonts to use in Visual Studio Code?

From Java

How to install Visual Studio Code extensions from Command line

From Dev

I can't install Visual Studio Code

From Dev

How can I configure Visual Studio Code to recognize files with extensions other than .js as Javascript

From Dev

How do I install Visual Studio Code?

From Dev

How can I install TV extensions with the new Tizen Studio 1.2?

From Dev

How can I install Visual Studio?

From Dev

How can I install Visual Studio?

From Dev

Can we write extensions for Visual Studio Code?

From Dev

How to show the extensions installed in Visual Studio Code?

From Dev

Can I install Visual Studio Code on Ubuntu 32 bit?

From Dev

Can I install Visual Studio Code on Ubuntu 32 bit?

From Dev

How can I install and use Entity Framework Core in Visual Studio Code?

From Dev

Install offline C# dependencies for visual studio code

From Dev

How can I install MS OneNote offline?

From Dev

How can I debug Python 3 code in Visual Studio Code?

From Dev

How Can I Install Cordova Plugins Using Visual Studio Cordova?

From Dev

How can I install Python tool for visual studio 2015?

From Dev

Offline extension for Visual Studio Code

From Dev

How to install Visual Studio Gallery extensions from command line

From Dev

Installing extensions on visual studio code

From Dev

How to install gnome shell extensions offline?

From Dev

How to install gnome shell extensions offline?

From Java

How can I clear the terminal in Visual Studio Code?

From Java

How can I view the Git history in Visual Studio Code?

From Java

How can I change keyboard shortcut bindings in Visual Studio Code?

From Java

How can I switch word wrap on and off in Visual Studio Code?

From Java

How can I disable live code analysis in Visual Studio 2017?

Related Related

  1. 1

    How can I "install" fonts to use in Visual Studio Code?

  2. 2

    How can I "install" fonts to use in Visual Studio Code?

  3. 3

    How to install Visual Studio Code extensions from Command line

  4. 4

    I can't install Visual Studio Code

  5. 5

    How can I configure Visual Studio Code to recognize files with extensions other than .js as Javascript

  6. 6

    How do I install Visual Studio Code?

  7. 7

    How can I install TV extensions with the new Tizen Studio 1.2?

  8. 8

    How can I install Visual Studio?

  9. 9

    How can I install Visual Studio?

  10. 10

    Can we write extensions for Visual Studio Code?

  11. 11

    How to show the extensions installed in Visual Studio Code?

  12. 12

    Can I install Visual Studio Code on Ubuntu 32 bit?

  13. 13

    Can I install Visual Studio Code on Ubuntu 32 bit?

  14. 14

    How can I install and use Entity Framework Core in Visual Studio Code?

  15. 15

    Install offline C# dependencies for visual studio code

  16. 16

    How can I install MS OneNote offline?

  17. 17

    How can I debug Python 3 code in Visual Studio Code?

  18. 18

    How Can I Install Cordova Plugins Using Visual Studio Cordova?

  19. 19

    How can I install Python tool for visual studio 2015?

  20. 20

    Offline extension for Visual Studio Code

  21. 21

    How to install Visual Studio Gallery extensions from command line

  22. 22

    Installing extensions on visual studio code

  23. 23

    How to install gnome shell extensions offline?

  24. 24

    How to install gnome shell extensions offline?

  25. 25

    How can I clear the terminal in Visual Studio Code?

  26. 26

    How can I view the Git history in Visual Studio Code?

  27. 27

    How can I change keyboard shortcut bindings in Visual Studio Code?

  28. 28

    How can I switch word wrap on and off in Visual Studio Code?

  29. 29

    How can I disable live code analysis in Visual Studio 2017?

HotTag

Archive