Download and install VS Code for offline environments
Project description
vscode-offline
vscode-offline 主要用于在无网环境下安装 VS Code 和 VS Code Server,方便使用 Remote - SSH 插件进行远程开发。
安装
pip install -U vscode-offline
优势
- 自动识别并下载所有
.vsix文件(包括间接依赖) - 一键安装 VS Code Server 以及其所有插件
VS Code 离线安装
(1)在联网环境安装好 VS Code 和你需要的插件,如 Remote - SSH, Python 等。
(2)执行如下命令,下载 VS Code 安装包,和目前安装的所有的插件
vscode-offline download-all --client-platform win32-x64 --server-platform linux-x64
(3)复制 ./vscode-offline-installer 到内网 Windows 机器,安装 ./vscode-offline-installer/<version> 下的 VS Code,然后执行如下命令安装所有插件
vscode-offline install-extensions --installer ./vscode-offline-installer
(4)复制 ./vscode-offline-installer 到内网 Linux 服务器,执行如下命令安装 VS Code Server 和所有插件
vscode-offline install-server --installer ./vscode-offline-installer
指定 VS Code 版本号
如果你想下载或安装指定版本的 VS Code,可以先通过 code --version 获取当前版本,然后通过 --code-version 参数指定版本号,例如:
vscode-offline download-all --code-version 1.104.3
也支持使用 commit hash 作为版本号,例如:
vscode-offline download-all --code-version commit:385651c938df8a906869babee516bffd0ddb9829
文件下载地址
如果你不想使用 vscode-offline,也可以手动下载对应的文件。
VS Code / VS Code Server / VS Code CLI 下载地址格式:
curl -O https://update.code.visualstudio.com/<version>/<platform>/stable
curl -O https://update.code.visualstudio.com/commit:<commit>/<platform>/stable
# 比如
curl -O https://update.code.visualstudio.com/1.104.3/cli-alpine-x64/stable
curl -O https://update.code.visualstudio.com/commit:385651c938df8a906869babee516bffd0ddb9829/win32-x64/stable
VS Code Extension 下载地址格式:
curl -O https://marketplace.visualstudio.com/_apis/public/gallery/publishers/<publisher>/vsextensions/<extension>/<version>/vspackage?targetPlatform=<platform>
# 比如
curl -O https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ms-python/vsextensions/python/2025.14.0/vspackage?targetPlatform=linux-x64
Platform 映射关系:
| VS Code | VS Code Server | VS Code CLI | VS Code Extension |
|---|---|---|---|
| win32-x64 | server-win32-x64 | cli-win32-x64 | win32-x64 |
| win32-x64-user | server-win32-x64 | cli-win32-x64 | win32-x64 |
| win32-x64-archive | server-win32-x64 | cli-win32-x64 | win32-x64 |
| win32-arm64 | server-win32-arm64 | cli-win32-arm64 | win32-arm64 |
| win32-arm64-user | server-win32-arm64 | cli-win32-arm64 | win32-arm64 |
| win32-arm64-archive | server-win32-arm64 | cli-win32-arm64 | win32-arm64 |
| linux-x64 | server-linux-x64 | cli-alpine-x64 | linux-x64 |
| linux-deb-x64 | server-linux-x64 | cli-alpine-x64 | linux-x64 |
| linux-rpm-x64 | server-linux-x64 | cli-alpine-x64 | linux-x64 |
| linux-arm64 | server-linux-arm64 | cli-alpine-arm64 | linux-arm64 |
| linux-deb-arm64 | server-linux-arm64 | cli-alpine-arm64 | linux-arm64 |
| linux-rpm-arm64 | server-linux-arm64 | cli-alpine-arm64 | linux-arm64 |
| linux-armhf | server-linux-armhf | cli-linux-armhf | linux-armhf |
| linux-deb-armhf | server-linux-armhf | cli-linux-armhf | linux-armhf |
| linux-rpm-armhf | server-linux-armhf | cli-linux-armhf | linux-armhf |
| darwin | server-darwin | cli-darwin-x64 | darwin-x64 |
| darwin-arm64 | server-darwin-arm64 | cli-darwin-arm64 | darwin-arm64 |
贡献
欢迎提交 Issue 和 PR 改进本项目。
License
Copyright (c) 2025 Chuck Fan.
Distributed under the terms of the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vscode_offline-0.1.8.tar.gz.
File metadata
- Download URL: vscode_offline-0.1.8.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0a519503a8172256992495200ef659c8382b02d132f9c377bc45c45aa682d20
|
|
| MD5 |
3b1d821cb93084fa0106324826734526
|
|
| BLAKE2b-256 |
83ab2355b66f7e622dc4e5c77dcf9df33e167b1a45581ce6dd9f73639e425b92
|
Provenance
The following attestation bundles were made for vscode_offline-0.1.8.tar.gz:
Publisher:
build.yml on fanck0605/vscode-offline
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vscode_offline-0.1.8.tar.gz -
Subject digest:
a0a519503a8172256992495200ef659c8382b02d132f9c377bc45c45aa682d20 - Sigstore transparency entry: 584243569
- Sigstore integration time:
-
Permalink:
fanck0605/vscode-offline@5b50e1da1b56a5510e26eceb3d3829a63d6525aa -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/fanck0605
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@5b50e1da1b56a5510e26eceb3d3829a63d6525aa -
Trigger Event:
push
-
Statement type:
File details
Details for the file vscode_offline-0.1.8-py3-none-any.whl.
File metadata
- Download URL: vscode_offline-0.1.8-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92f47e29b6c30ba8a626e2888ce8ab7135aca34adaf1acca76cec22194f1204f
|
|
| MD5 |
b96e29c94727a59b856210fe24ce7bda
|
|
| BLAKE2b-256 |
a8d609272f79a03ec921365d2f3a86368d3155e45fd8fd4fd021bac0b8b02cd4
|
Provenance
The following attestation bundles were made for vscode_offline-0.1.8-py3-none-any.whl:
Publisher:
build.yml on fanck0605/vscode-offline
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vscode_offline-0.1.8-py3-none-any.whl -
Subject digest:
92f47e29b6c30ba8a626e2888ce8ab7135aca34adaf1acca76cec22194f1204f - Sigstore transparency entry: 584243572
- Sigstore integration time:
-
Permalink:
fanck0605/vscode-offline@5b50e1da1b56a5510e26eceb3d3829a63d6525aa -
Branch / Tag:
refs/tags/v0.1.8 - Owner: https://github.com/fanck0605
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@5b50e1da1b56a5510e26eceb3d3829a63d6525aa -
Trigger Event:
push
-
Statement type: