A vscode plugin for PicGo
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
lib v 0.0.1 Sep 24, 2018
src
.gitattributes
.gitignore Optimize code sturcture Sep 25, 2018
.vscodeignore
CHANGELOG.md
License
README.md docs: add English ReadMe Jan 16, 2019
README_ZH.md
logo.png
package.json docs: add English ReadMe Jan 16, 2019
tsconfig.json
tslint.json v 0.0.1 Sep 24, 2018
yarn.lock docs: add English ReadMe Jan 16, 2019

README.md

vs-picgo(Vscode Plugin for PicGo)

The VSCode extension of PicGo

OverView

vs-picgo is a VSCode extension to upload images to a remote image hosting and insert the url into current active MarkDown file. It's more efficient. And it can give us a better experience of uploading images. vs-picgo supports 8 kinds of image hostings supported by PicGo.

  • Uploading an image from clipboard clipboard.gif
  • Uploading images from explorer explorer.gif
  • Uploading an image from input box inputbox.gif
  • Select characters as image name Note: These characters, $, :, /, ., ?, will be ignored in the image name. image name.gif

Settings

  • out of box
    • We could use vs-picgo without any setting.
    • The default image hosting is SM.MS
  • custom
    • insert the content below into usersetting.json of VSCode. Detail information about custom setting
       {
       	"picgo": {
       		"path": "path to your external configure file" // default value is "", which means use "picBed" info below. External configure file should be a JSON file containing all the "picBed" info below.
       	},
       	"picBed": {
       		"current": "smms",  // current image hosting, default value is "smms"
       		"weibo":{           // weibo image hosting
       			"chooseCookie": true | false,
       			"username": "",
       			"password": "",
       			"quality": "thumbnail" | "mw690" | "large",
       			"cookie": ""
       		},
       		"qiniu": {          // qiniu image hosting
       			"accessKey": "",
       			"secretKey": "",
       			"bucket": "",
       			"url": "",
       			"area": "",       // "z0" -> 华东, "z1" -> 华北, "z2" -> 华南, "na0" -> 北美, "as0" -> 东南亚
       			"options": "" 		// prefix of url
       			"path":"" 				// postfix of path
       		},
       		"upyun": {          // upyun image hosting
       			"bucket": "",
       			"operator": "",
       			"password": "",
       			"options": "",
       			"path": "",
       			"url": ""
       		},
       		"tcyun": {          // tcyun image hosting
       			"secretId": "",
       			"secretKey": "",
       			"bucket": "",
       			"appId": "",
       			"area": "",
       			"path": "",
       			"customUrl": "",
       			"version": "v5" | "v4"
       		},
       		"github": {         // github image hosting
       			"repo": "",
       			"token": "",
       			"path": "",
       			"customUrl": "",
       			"branch": "",
       			"username": ""
       		},
       		"aliyun": {         // aliyun image hosting
       			"accessKeyId": "",
       			"accessKeySecret": "",
       			"bucket": "",
       			"area": "",
       			"path": "",
       			"customUrl": ""
       		}
       	}
       }

KeyMap

You can change all the keymaps below as you wish.

  • Uploading an image from clipboard
    • Windows/Unix: Ctrl + Alt + u
    • OsX: Cmd + Opt + u
  • Uploading images from explorer
    • Windows/Unix: Ctrl + Alt + e
    • OsX: Cmd + Opt + e
  • Uploading an image from input box
    • Windows/Unix: Ctrl + Alt + o
    • OsX: Cmd + Opt + 0

Useage

  • Find vs-picgo in the extension store, and install vs-picgo. You can use vs-picgo on installation finishes.

Contributers

Thanks

Enjoy!