VSCode插件离线下载与安装
Intro
之前在小红书刷到帖子,楼主不能正常下载VSCode汉化插件,当时评论了在Marketplace下载VSIX文件离线安装的方法;后续有人反馈找不到下载按钮,在VSCode Marketplace上找了一下,发现VSCode团队似乎把这个UI入口移除了;
One of the main reasons for the removal of the Download Extension button was that it was not supporting pre-release extensions, and was a constant source of user confusion. E.g. users want to download the latest release version of the extension, but the button downloads the highest version, which is the pre-release version. Also platform specific extensions dropdown was highly confusing. Having the Download Extension button in VS Code - both of those problems get fixed, the right platform gets auto-picked, and the release / pre-release is respected.
省流版:插件市场移除下载按钮的原因是为了避免用户下载到不适合自己平台的插件,或者下载到预发布版本的插件
本文介绍如何通过VSCode插件的Identifier、Version等信息,通过API接口离线下载插件,以及如何安装离线下载的插件。
VSCode插件离线下载
以汉化插件为例

插件右侧有如下信息
- Identifier:
ms-ceintl.vscode-language-pack-zh-hans
- Version:
1.99.2025031909
VSCode下载插件的链接格式为:
https://marketplace.visualstudio.com/_apis/public/gallery/publishers/{publisher_id}/vsextensions/{extension_name}/{version}/vspackage
替换链接中的占位符
占位符 | 示例值 |
---|---|
{publisher_id} | ms-ceintl |
{extension_name} | vscode-language-pack-zh-hans |
{version} | 1.99.2025031909 |
点开如下链接,即可在浏览器下载插件到本地,格式一般为.vsix
1
2
- 替换前:https://marketplace.visualstudio.com/_apis/public/gallery/publishers/{publisher_id}/vsextensions/{extension_name}/{version}/vspackage
+ 替换后:https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ms-ceintl/vsextensions/vscode-language-pack-zh-hans/1.99.2025031909/vspackage
Optional Parameter
?targetPlatform=win32-x64
:指定插件的目标平台,部分插件可能不是universal的,此时需要指定目标平台。
Binary type | Target Platform |
---|---|
Alpine Linux 64 bit | alpine-x64 |
Alpine Linux ARM64 | alpine-arm64 |
Linux ARM32 | linux-armhf |
Linux ARM64 | linux-arm64 |
Linux x64 | linux-x64 |
Windows ARM | win32-arm64 |
Windows x64 | win32-x64 |
macOS Apple Silicon | darwin-arm64 |
macOS Intel | darwin-x64 |
Install From VSIX
图形化方式
快捷键:Ctrl+Shift+P (Windows) / Cmd+Shift+P (Mac)
输入并选择:Extensions: Install from VSIX

CLI方式
code --install-extension <path_to_vsix_file>
Reference
VSCode插件离线下载与安装