English | 简体中文
A focused VS Code extension for uploading images to Tencent Cloud Object Storage (COS) and browsing them without leaving the editor. It ships with a polished sidebar gallery that adapts to your VS Code theme.
Features
- Image gallery — Browse the images in your bucket as thumbnails, with file name, format, size and modified time. Search by name, preview in a large modal, copy the link, or open it in your browser.
- One-click upload — Pick a local image and upload it to the active configuration. On success you get the object key and a shareable link.
- Multiple COS configurations — Add, switch, test and delete multiple bucket configurations. Credentials are kept in VS Code
SecretStorage, never in plain state or logs. - Theme-aware UI — The sidebar maps Arco Design tokens to VS Code theme variables, so it follows your light/dark theme automatically.
- Command palette support — Every action is also available as a command for keyboard-driven workflows.
Supported image types: .png, .jpg, .jpeg, .gif, .webp, .bmp, .svg, .ico. Maximum single file size: 100 MB.
Getting Started
- Install the extension and click the Tencent COS icon in the Activity Bar.
- Open the 设置 (Settings) tab and add a configuration:
- 名称 (Name) — a label to identify the configuration.
- SecretId / SecretKey — your Tencent Cloud access keys.
- 所属地域 (Region) — e.g.
ap-guangzhou. - 存储桶 (Bucket) — e.g.
example-1250000000. - 存储路径 (Path prefix) — optional, e.g.
images/.
- Use the test action to verify the connection, then switch to the 图库 (Gallery) tab to upload and browse images.
Commands
Open the Command Palette (Ctrl/Cmd + Shift + P) and search for Tencent COS:
| Command | Description |
|---|---|
Tencent COS: 配置 腾讯云COS |
Create a new COS configuration |
Tencent COS: 选择配置 |
Switch the active configuration |
Tencent COS: 删除配置 |
Delete a configuration |
Tencent COS: 测试配置 |
Test the active configuration |
Tencent COS: 上传图片 |
Upload a single image |
Tencent COS: 获取图片 Object |
List image objects in the bucket |
Requirements
- VS Code
^1.125.0 - A Tencent Cloud account with a COS bucket and access keys (SecretId / SecretKey)
Security
- SecretId and SecretKey are stored in VS Code
SecretStorageand are never written toglobalState, logs, or source. - All COS requests run in the extension host process; keys are never exposed to the webview or the frontend.
Notes
- Image thumbnails load directly from
https://<bucket>.cos.<region>.myqcloud.com/.... If your bucket is private-read, thumbnails may not render until the object is publicly readable or signed-URL support is added.
Release Notes
0.0.1
Initial release: image upload, multiple COS configurations (add / switch / test / delete), theme-aware sidebar gallery with search, preview, copy link and open in browser.
Enjoy!