Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.3 KB

README.zh-CN.md

File metadata and controls

53 lines (38 loc) · 1.3 KB

Upgit for VSCode

将剪贴板的图片直接上传并插入文档。

后端采用 pluveto/upgit: Another Typora image uploader.

支持多种上传方式:

  • Github
  • Tencent QcloudCOS
  • Qiniu Kodo
  • Upyun
  • SM.MS
  • Imgur
  • ImgUrl.org
  • CatBox
  • LSkyPro
  • Chevereto
  • ImgBB
  • Cloudinary
  • EasyImage

起步

首先,请确保你正确安装并配置了 Upgit 程序本体。详见 pluveto/upgit.

在 VSCode 扩展市场搜索 upgit,安装并启用。

按 F1 搜索 >Settings UI,如下设置 upgit.upgitPath,填写你的 upgit 安装路径。

upgit_20220413_1649824782.png

如果需要自定义参数,请采用 JSON 格式的配置文件,示例如下:

{
 "upgitPath": "C:\\Users\\pluveto\\AppData\\Local\\upgit\\upgit.exe",
 "upgitArgs": {
  "": ":clipboard",
  "--output-type": "stdout",
  "--output-format": "markdown"
}
}

然后在编辑文档时,按 F1,调出 Upgit: Upload clipboard image and insert into document 命令实现上传剪贴板图像

命令

可向命令绑定快捷键,从而更方便使用。

extension.upgit.upload-clipboard-image: 上传剪贴板的图片。