How to Install a VS Code Extension from a VSIX File

Learn how to install a VS Code extension from a .vsix file using the Extensions view and the command line. Know the risks and when to use VSIX instead of the Marketplace.

5 min read

A VSIX file is a packaged VS Code extension. You install it when the extension is not available through the regular Marketplace search, when you are offline, or when someone shares a private extension with you.

VS Code provides two ways to install from a VSIX: through the Extensions view and from the command line. Both work identically. The main difference is that auto-update is disabled for VSIX-installed extensions by default.

Before you install a VSIX file, make sure you trust its source. A VSIX file can run arbitrary code on your machine with the same permissions as VS Code itself. If you received the file from someone else, verify the publisher and the source before proceeding. Read the guide on checking extension safety for a full checklist.

How to install a VSIX from the Extensions view

Open the Extensions view

Click the Extensions icon in the Activity Bar or press Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (macOS).

Open the More Actions menu

Click the ... (Views and More Actions) button in the top-right corner of the Extensions view header.

Select Install from VSIX

Choose Install from VSIX from the dropdown menu. A file picker dialog opens.

Select the .vsix file

Navigate to your .vsix file, select it, and click Open.

Confirm the install

VS Code installs the extension. If it is from an unrecognized publisher, a trust dialog appears. Review the publisher name and click Trust if you are confident the extension is safe.

You can also use the Command Palette instead of the More Actions menu. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS), run Extensions: Install from VSIX, and select the file.

How to install a VSIX from the command line

Open a terminal and run:

bashbash
code --install-extension /path/to/extension.vsix

Replace /path/to/extension.vsix with the actual path to your VSIX file. The extension installs into VS Code and is immediately available.

If you use VS Code Insiders, use code-insiders instead of code:

bashbash
code-insiders --install-extension /path/to/extension.vsix

You can install multiple VSIX files at once by repeating the flag. This is useful for setting up a new machine with a set of private extensions:

bashbash
code --install-extension extension-one.vsix --install-extension extension-two.vsix

Where to get VSIX files

SourceHow
From the MarketplaceIn the Extensions view, right-click any extension and select Download VSIX
From GitHub releasesExtension authors often attach .vsix files to GitHub releases
From a private buildA colleague or build pipeline packages an extension with vsce package

To download a VSIX from the Marketplace: search for the extension, right-click it in the results, and choose Download VSIX. You can also choose Download Specific Version VSIX to get an older version.

The VSIX file downloads to your default download folder. You can then share it, archive it, or install it on another machine.

What changes after VSIX install

When you install an extension from a VSIX file, VS Code treats it differently from a Marketplace install in two ways:

Auto-update is turned off. The extension will not receive updates automatically. If a newer version is released on the Marketplace, you will not be prompted to update. To update, you must download a new VSIX file and install it again.

The extension appears in your installed list normally. It works the same as any other extension. You can enable, disable, or uninstall it through the Extensions view. The only visible difference is the lack of automatic updates.

If you later want the extension to receive Marketplace updates, uninstall it and reinstall from the Marketplace search.

Signature verification for VSIX files

The Visual Studio Marketplace signs all extensions when they are published. VS Code verifies this signature when you install any extension, including from a VSIX file.

If you see the error Cannot install extension because Visual Studio Code cannot verify the extension signature, do not disable signature verification unless you fully trust the source. The error means the extension package has been tampered with, was not signed properly, or comes from an untrusted publisher.

VS Code will also show a trust dialog when you install a VSIX from a third-party publisher. This is the same dialog that appears during Marketplace installs since version 1.97.

When to use VSIX instead of the Marketplace

ScenarioUse VSIX?
Installing on a machine without internet accessYes. Download the VSIX on a connected machine first.
Testing an extension you are developingYes. Package with vsce package and install the VSIX.
Installing a private company extensionYes. Share the VSIX file internally.
Installing from the Marketplace normallyNo. Use the Install button in the Extensions view. Auto-update stays on.
Getting the latest version of a public extensionNo. Marketplace install keeps auto-update enabled.

If you are developing your own extension, you can create a VSIX file by installing the @vscode/vsce npm package and running vsce package in your extension's root folder.

For more on managing extensions after installation, read the guide on installing, disabling, and updating extensions.

Rune AI

Rune AI

Key Insights

  • Install a VSIX from the Extensions view: open the ... menu and select Install from VSIX, or run Extensions: Install from VSIX in the Command Palette.
  • Install from the command line: code --install-extension path/to/extension.vsix. Use code-insiders for the Insiders edition.
  • Auto-update is disabled by default for VSIX-installed extensions. You must update them manually.
  • VSIX files come from the Marketplace (right-click > Download VSIX), GitHub releases, or internal builds. Verify the source before installing.
  • VS Code checks extension signatures on VSIX files too. Do not disable signature verification unless you fully trust the source.
RunePowered by Rune AI

Frequently Asked Questions

What is a VSIX file?

A VSIX file is a packaged VS Code extension. It has the .vsix extension and contains all the code, resources, and metadata for one extension. VSIX files are how extensions are distributed on the Marketplace and can also be shared directly.

Will a VSIX-installed extension auto-update?

No. When you install an extension from a VSIX file, auto-update is disabled for that extension by default. You must manually download and install newer VSIX files if you want to update it.

How do I get a VSIX file for an extension that is already on the Marketplace?

In the Extensions view, right-click any extension and select Download VSIX. You can also choose Download Specific Version VSIX to get an older version. The VSIX file downloads to your default download folder.

Conclusion

You can install any .vsix extension using the Extensions view or the code --install-extension command. VSIX installs are useful for offline environments, private extensions, and testing. Remember that auto-update is disabled for VSIX-installed extensions, and you must verify the source yourself since the file bypasses the Marketplace trust flow. For everyday extension management, read the guide on installing, disabling, and updating extensions.