VSCode 扩展离线下载方法

学习自该文章,感谢作者!

2025 年 VSCode 插件离线下载攻略:官方渠道一键获取 - 知乎

获取扩展关键信息

方法一:官网获取

打开 VSCode 扩展官方网站

搜索要下载的扩展,以 CodeGeeX 为例,网址为:

CodeGeeX: AI Coding Assistant - Visual Studio Marketplace

在页面右侧,找到以下信息:

More Info

Version 2.22.3
Released on 2022/9/18 21:38:06
Last updated 2025/4/18 13:11:34
Publisher Zhipu AI
Unique Identifier aminer.codegeex
Report Report a concern

需要注意的是,发布者(Publisher)不能用 Publisher 的 Zhipu AI,而是用

Identifier 的前面部分:aminer

扩展名是用 Identifier 的后面部分 :codegeex

版本信息是用 Version:2.22.3,

方法二:VSCode 获取

运行 VSCode,在扩展商店搜索要下载的扩展,以 CodeGeeX 为例。

在扩展介绍页面,标题如下:

CodeGeeX: AI Coding Assistant v2.22.3

这里能获取版本信息:2.22.3,注意不能带 v

在具体介绍的右侧页面,能找到标识信息:

标识符 aminer.codegeex

这里能获取 发布者(Publisher):aminer 和扩展名:codegeex

代入网址模版

将上述信息代入 https://marketplace.visualstudio.com/_apis/public/gallery/publishers/{发布者}/vsextensions/{插件名}/{版本号}/vspackage

codegeex 下载网址即为:https://marketplace.visualstudio.com/_apis/public/gallery/publishers/aminer/vsextensions/codegeex/2.22.3/vspackage

​如果是不同目标平台,结尾还要搭配上 ?targetPlatform={platform}

platform选项:

platform 平台
win32-x64 Windows 64-bit
win32-ia32 Windows 32-bit
win32-arm64 Windows ARM64
darwin-x64 macOS Intel
darwin-arm64 macOS Apple Silicon
linux-x64 Linux 64-bit
linux-arm64 Linux ARM64
alpine-x64 Alpine Linux

注意: 不是所有扩展都有上述平台的特定版本,codegeex 就不能下载特定平台版本。如果不能下载会获取类似错误信息:

{"$id":"1","innerException":null,"message":"Version 2.22.3 for extension aminer.codegeex has no support for targetPlatform darwin-arm64","typeName":"Microsoft.VisualStudio.Services.Gallery.WebApi.ExtensionVersionHasNoSupportForRequestedTargetPlatformsException, Microsoft.VisualStudio.Services.Gallery.WebApi","typeKey":"ExtensionVersionHasNoSupportForRequestedTargetPlatformsException","errorCode":0,"eventId":3000}

其中 aminer.codegeex has no support for targetPlatform darwin-arm64 说明没有 darwin-arm64 的特定版本。

没有特定版本不一定表示不支持,也可能是通用版本。

相关推荐
清晨朝暮8 小时前
vscode不满足先决条件问题的解决——vscode的老版本安装与禁止更新(附安装包)
ide·vscode·编辑器
扮作大侠8 小时前
VScode自动添加指定内容
ide·vscode·编辑器
Eric.Lee20218 小时前
vscode实时预览编辑markdown
ide·vscode·编辑器·markdown
BIBI204912 小时前
Windows 下彻底删除 VsCode
windows·vscode
程序猿小D12 小时前
第11节 Node.js 模块系统
服务器·前端·node.js·编辑器·vim
湮雨塵飛12 小时前
ESP32开发之LED闪烁和呼吸的实现
vscode·嵌入式硬件·esp32·freertos·呼吸灯
HealthScience15 小时前
实现Cursor + Pycharm 交互
java·ide·intellij-idea
xiaobobo333016 小时前
解决vscode打开一个单片机工程文件(IAR/keil MDK)因无法找到头文件导致的结构体成员不自动补全问题。
vscode·stm32·无法找到头文件·结构体成员不补全
BIBI204916 小时前
VsCode 安装 Cline 插件并使用免费模型(例如 DeepSeek)
vscode·deepseek·cline
码码哈哈爱分享21 小时前
Cursor 编辑器介绍:专为程序员打造的 AI 编程 IDE
人工智能·编辑器