Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>tencent-cloud-cos-upload-imageNew to Visual Studio Code? Get it now.
tencent-cloud-cos-upload-image

tencent-cloud-cos-upload-image

chenng

|
87 installs
| (0) | Free
VSCode插件,在 markdown 中选择或截图上传图片至腾讯云COS
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

tencent-cloud-cos-upload-image

原版:https://github.com/Galen-Yip/tencent-cloud-cos-upload-image

对原版进行一些修改

使用

cmd + opt + o 选择本地文件上传至 COS

发布

npm run deploy

参数配置

{
    // 地区,在COS对象存储中bucket对应的地域
    "tencentCOSUpload.region": "",
    // secretId,在 https://console.cloud.tencent.com/cam/capi 中获取
    "tencentCOSUpload.secretId": "",
    // secretKey,在 https://console.cloud.tencent.com/cam/capi 中获取
    "tencentCOSUpload.secretKey": "",
    // 输入你的bucket名称,如 a-1250000000
    "tencentCOSUpload.bucket": "",
    // remotePath,您的存储目录,例如要把文件存在 http://${你的域名}/images/png 这个目录下,则这里填写images/png。默认为空,即存储在根路径下
    "tencentCOSUpload.remotePath": "",
    // 存储桶是否为公有可访问,如为私有,且希望上传后的url带签名,则设置为false,默认是 true
    "tencentCOSUpload.isPublic": "true",
    // 签名有效期,单位为妙,isPublic设置为 false 时有效
    "tencentCOSUpload.duration": "31536000",
    // 自定义域名,原来替换引用的默认COS域名,无特殊需求可不用修改
    "tencentCOSUpload.domain": "",
    // 临时目录,默认 /tmp/.tencentCOSUpload,无特殊需求可不用修改
    "tencentCOSUpload.localPath": "/tmp/.tencentCOSUpload"
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft