Coder Social home page Coder Social logo

mrgaogang / vscode-tencent-cloud-cos-uploader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gggwvg/vscode-tencent-cloud-cos-uploader

1.0 1.0 0.0 3.1 MB

VSCode 插件,支持直接在 Markdown 文件中 粘贴截图 和 选择文件 上传到腾讯云 COS,得到文件地址后引用显示,大家直接在本地写 Markdown 时特别实用。

License: Apache License 2.0

Shell 3.05% AppleScript 4.77% PowerShell 4.21% TypeScript 87.98%

vscode-tencent-cloud-cos-uploader's Introduction

vscode-tencent-cloud-cos-uploader

fork from vscode-tencent-cloud-cos-uploader

VSCode 插件,支持直接在 Markdown 文件中 粘贴截图选择文件 上传到腾讯云 COS,得到文件地址后引用显示,大家直接在本地写 Markdown 时特别实用。

如果你没听说过腾讯云 COS,请点击传送门。简单理解的话,你可以把它当做图床。

此插件拓展了 tencent-cloud-cos-upload-image 的功能。


使用

在 Markdown 文件中

  • 使用 ctrl+ alt + p (Windows) / cmd + opt + p (Mac), 粘贴板里面的图片会直接上传至 cos
  • 使用 ctrl+ alt + o (Windows) / cmd + opt + o (Mac), 选择本地文件上传至 cos

或者右键使用:

参数配置

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

vscode-tencent-cloud-cos-uploader's People

Contributors

gggwvg avatar mrgaogang avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.