Vscode插件picgo
2019-12-22 本文已影响0人
雪之梦_8f14
VsPicGo Notes
作用
-
使用各种图床,在vscode中使用快捷键快速将图片转换成url插入文档中
-
个人使用github的图床,需要自己手动创建一个github仓库
设置
-
vscode中下载picgo插件
-
在github上新建一个repository并生成一个token
- 如何生成一个token:
- github网站 -> Settings -> Developer Settings -> Personal Access tokens -> Generate new token -> 记住此token
- 如何生成一个token:
-
在vscode中设置githb图层
- [图片上传失败...(image-36b85c-1576979473861)]
- picgo setting:
- Pic Bed Current 选择 github
- Path:填写新建github仓库的路径 例如:
VscodeImages
- Repo: 用户名/仓库名, 比如:
baby-jie/MarkdownImages
- Token: 第二步骤在github网站上设置的token填入其中即可
- picgo setting:
- 上传测试
快捷键
-
uploading an image from clipoard:
Ctrl + Alt + U
-
uploading images from explorer:
Ctrl + Alt + E
-
uploading an image from input box:
Ctrl + Alt + O